Part of docshell/webshell landing prep work. The doc loader is being re-factored into the uri loader.

r=travis
This commit is contained in:
mscott%netscape.com 2000-01-29 06:08:52 +00:00
Родитель cc200aabd3
Коммит ee72520994
2 изменённых файлов: 35 добавлений и 2 удалений

Просмотреть файл

@ -23,6 +23,7 @@
#include "nsLayoutModule.h"
#include "nsIComponentManager.h"
#include "nsIDocumentLoader.h"
#include "nsIDocumentLoaderFactory.h"
#include "nsIDocument.h"
#include "nsIDocumentViewer.h"
#include "nsIURL.h"

Просмотреть файл

@ -27,6 +27,7 @@
#include "nsIBrowserWindow.h"
#include "nsIWebShell.h"
#include "nsIDocShell.h"
#include "nsIMarkupDocumentViewer.h"
#include "nsIClipboardCommands.h"
#include "pratom.h"
@ -1281,7 +1282,9 @@ nsBrowserAppCore::SetWebShellWindow(nsIDOMWindow* aWin)
mWebShell = webShell;
//NS_ADDREF(mWebShell); WE DO NOT OWN THIS
// inform our top level webshell that we are its parent URI content listener...
mWebShell->SetParentURIContentListener(this);
nsCOMPtr<nsIDocShell> docShell (do_QueryInterface(mWebShell));
if (docShell)
docShell->SetParentURIContentListener(this);
const PRUnichar * name;
webShell->GetName( &name);
@ -1500,7 +1503,7 @@ nsBrowserAppCore::OnEndDocumentLoad(nsIDocumentLoader* aLoader, nsIChannel* chan
if (mContentAreaDocLoader) {
PRBool isBusy = PR_FALSE;
mContentAreaDocLoader->IsBusy(isBusy);
mContentAreaDocLoader->IsBusy(&isBusy);
if (isBusy) {
return NS_OK;
}
@ -2373,6 +2376,35 @@ nsBrowserInstance::CanHandleContent(const char * aContentType,
return NS_OK;
}
NS_IMETHODIMP
nsBrowserInstance::GetParentContentListener(nsIURIContentListener** aParent)
{
*aParent = nsnull;
return NS_OK;
}
NS_IMETHODIMP
nsBrowserInstance::SetParentContentListener(nsIURIContentListener* aParent)
{
NS_ASSERTION(!aParent, "SetParentContentListener on the application level should never be called");
return NS_OK;
}
NS_IMETHODIMP
nsBrowserInstance::GetLoadCookie(nsISupports ** aLoadCookie)
{
*aLoadCookie = nsnull;
return NS_OK;
}
NS_IMETHODIMP
nsBrowserInstance::SetLoadCookie(nsISupports * aLoadCookie)
{
NS_ASSERTION(!aLoadCookie, "SetLoadCookie on the application level should never be called");
return NS_OK;
}
NS_DEFINE_MODULE_INSTANCE_COUNTER()