Moved URI fixup code out of docshell and into a global service. b=51702, sr=waterson@netscape.com

This commit is contained in:
locka@iol.ie
2000-11-08 21:00:37 +00:00
parent 3ab2fea12c
commit ab64b20ce9
10 changed files with 430 additions and 196 deletions
+7 -1
View File
@@ -23,8 +23,10 @@
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsWebShell.h"
#include "nsDefaultURIFixup.h"
NS_GENERIC_FACTORY_CONSTRUCTOR(nsWebShell);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDefaultURIFixup);
// Currently no-one is instanciating docshell's directly because
// nsWebShell is still our main "shell" class. nsWebShell is a subclass
@@ -37,7 +39,11 @@ static nsModuleComponentInfo gDocShellModuleInfo[] = {
{ "WebShell",
NS_WEB_SHELL_CID,
"@mozilla.org/webshell;1",
nsWebShellConstructor }
nsWebShellConstructor },
{ "Default keyword fixup",
NS_DEFAULTURIFIXUP_CID,
NS_URIFIXUP_CONTRACTID,
nsDefaultURIFixupConstructor }
};
// "docshell provider" to illustrate that this thing really *should*