Create a service that can be asked whether a given webnavigation (or a

"typical" webnavigation) supports loading of a certain MIME type.  Bug 283125,
r=biesi, sr=darin
This commit is contained in:
bzbarsky@mit.edu
2005-02-27 18:33:27 +00:00
parent ad3bdb8234
commit 455be22605
18 changed files with 476 additions and 187 deletions

View File

@@ -39,8 +39,12 @@
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsDocShellCID.h"
#include "nsWebShell.h"
#include "nsDefaultURIFixup.h"
#include "nsWebNavigationInfo.h"
// uriloader
#include "nsURILoader.h"
@@ -61,6 +65,7 @@
// docshell
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsWebShell, Init)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDefaultURIFixup)
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsWebNavigationInfo, Init)
// uriloader
NS_GENERIC_FACTORY_CONSTRUCTOR(nsURILoader)
@@ -99,6 +104,11 @@ static const nsModuleComponentInfo gDocShellModuleInfo[] = {
NS_URIFIXUP_CONTRACTID,
nsDefaultURIFixupConstructor
},
{ "Webnavigation info service",
NS_WEBNAVIGATION_INFO_CID,
NS_WEBNAVIGATION_INFO_CONTRACTID,
nsWebNavigationInfoConstructor
},
// uriloader
{ "Netscape URI Loader Service", NS_URI_LOADER_CID, NS_URI_LOADER_CONTRACTID, nsURILoaderConstructor, },