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:
@@ -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, },
|
||||
|
||||
Reference in New Issue
Block a user