diff options
author | Matt A. Tobin <email@mattatobin.com> | 2021-11-24 04:18:51 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2021-11-24 04:18:51 -0500 |
commit | 4dbf697637d720d49dbb9bb541b88a01fd4ec99e (patch) | |
tree | b0dcf6d766e4fb5f57270e2da0b952ca2438ea36 /components/build | |
parent | 8efb1c2541c017402e927abf3bb4f7561ae57e40 (diff) | |
download | aura-central-4dbf697637d720d49dbb9bb541b88a01fd4ec99e.tar.gz |
Issue %3005 - Follow-up: Give Directory Viewer its own factory
- This frees up the xpfe factory if I need it in binoc-central
Diffstat (limited to 'components/build')
-rw-r--r-- | components/build/moz.build | 1 | ||||
-rw-r--r-- | components/build/nsXPFEFactory.cpp | 44 |
2 files changed, 0 insertions, 45 deletions
diff --git a/components/build/moz.build b/components/build/moz.build index 8bb583078..6f6053be2 100644 --- a/components/build/moz.build +++ b/components/build/moz.build @@ -11,7 +11,6 @@ EXPORTS += [ SOURCES += [ 'nsRDFModule.cpp', 'nsToolkitCompsModule.cpp', - 'nsXPFEFactory.cpp' ] LOCAL_INCLUDES += [ diff --git a/components/build/nsXPFEFactory.cpp b/components/build/nsXPFEFactory.cpp deleted file mode 100644 index 43966f94d..000000000 --- a/components/build/nsXPFEFactory.cpp +++ /dev/null @@ -1,44 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#include "mozilla/ModuleUtils.h" -#include "nsDirectoryViewer.h" -#include "rdf.h" -#include "nsRDFCID.h" -#include "nsCURILoader.h" - -// Factory constructors -NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsHTTPIndex, Init) -NS_GENERIC_FACTORY_CONSTRUCTOR(nsDirectoryViewerFactory) - -NS_DEFINE_NAMED_CID(NS_DIRECTORYVIEWERFACTORY_CID); -NS_DEFINE_NAMED_CID(NS_HTTPINDEX_SERVICE_CID); - -static const mozilla::Module::CIDEntry kXPFECIDs[] = { - { &kNS_DIRECTORYVIEWERFACTORY_CID, false, nullptr, nsDirectoryViewerFactoryConstructor }, - { &kNS_HTTPINDEX_SERVICE_CID, false, nullptr, nsHTTPIndexConstructor }, - { nullptr } -}; - -static const mozilla::Module::ContractIDEntry kXPFEContracts[] = { - { "@mozilla.org/xpfe/http-index-format-factory-constructor", &kNS_DIRECTORYVIEWERFACTORY_CID }, - { NS_HTTPINDEX_SERVICE_CONTRACTID, &kNS_HTTPINDEX_SERVICE_CID }, - { NS_HTTPINDEX_DATASOURCE_CONTRACTID, &kNS_HTTPINDEX_SERVICE_CID }, - { nullptr } -}; - -static const mozilla::Module::CategoryEntry kXPFECategories[] = { - { "Gecko-Content-Viewers", "application/http-index-format", "@mozilla.org/xpfe/http-index-format-factory-constructor" }, - { nullptr } -}; - -static const mozilla::Module kXPFEModule = { - mozilla::Module::kVersion, - kXPFECIDs, - kXPFEContracts, - kXPFECategories -}; - -NSMODULE_DEFN(application) = &kXPFEModule; |