if (NS_FAILED(rv)) return rv;  rv = catman->AddCategoryEntry("Gecko-Content-Viewers", "application/http-index-format; x-view-type=view-source", NS_DOCUMENT_LOADER_FACTORY_CONTRACTID_PREFIX "view;1?type=application/http-index-format; x-view-type=view-source", PR_TRUE, PR_TRUE, getter_Copies(previous));
RegisterProc(nsIComponentManager *aCompMgr,             nsIFile *aPath,             const char *registryLocation,             const char *componentType,             const nsModuleComponentInfo *info){    nsresult rv;    nsCOMPtr<nsICategoryManager> catman = do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv);    if (NS_FAILED(rv)) return rv;    // add the MIME types layotu can handle to the handlers category.    // this allows users of layout's viewers (the docshell for example)    // to query the types of viewers layout can create.    nsXPIDLCString previous;    rv = catman->AddCategoryEntry("Gecko-Content-Viewers", "application/http-index-format",                                   NS_DOCUMENT_LOADER_FACTORY_CONTRACTID_PREFIX "view;1?type=application/http-index-format",                                   PR_TRUE,                                    PR_TRUE,                                    getter_Copies(previous));    return rv;}