2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2005-03-24 00:09:39 +03:00
|
|
|
|
2010-06-10 22:11:11 +04:00
|
|
|
#include "mozilla/ModuleUtils.h"
|
2006-08-15 02:36:15 +04:00
|
|
|
#include "nsNetUtil.h"
|
2004-05-10 04:54:11 +04:00
|
|
|
#include "nsDirectoryViewer.h"
|
2006-08-15 02:36:15 +04:00
|
|
|
#include "rdf.h"
|
2002-09-28 11:25:15 +04:00
|
|
|
#include "nsRDFCID.h"
|
2002-09-19 23:00:13 +04:00
|
|
|
#include "nsCURILoader.h"
|
2009-09-05 11:24:07 +04:00
|
|
|
|
2000-09-05 22:49:53 +04:00
|
|
|
// Factory constructors
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsHTTPIndex, Init)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDirectoryViewerFactory)
|
2005-03-24 00:09:39 +03:00
|
|
|
|
2010-06-10 22:11:11 +04:00
|
|
|
NS_DEFINE_NAMED_CID(NS_DIRECTORYVIEWERFACTORY_CID);
|
|
|
|
NS_DEFINE_NAMED_CID(NS_HTTPINDEX_SERVICE_CID);
|
2001-04-18 01:00:37 +04:00
|
|
|
|
2010-06-10 22:11:11 +04:00
|
|
|
static const mozilla::Module::CIDEntry kXPFECIDs[] = {
|
|
|
|
{ &kNS_DIRECTORYVIEWERFACTORY_CID, false, NULL, nsDirectoryViewerFactoryConstructor },
|
|
|
|
{ &kNS_HTTPINDEX_SERVICE_CID, false, NULL, nsHTTPIndexConstructor },
|
|
|
|
{ NULL }
|
|
|
|
};
|
2001-04-18 01:00:37 +04:00
|
|
|
|
2010-06-10 22:11:11 +04:00
|
|
|
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 },
|
|
|
|
{ NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module::CategoryEntry kXPFECategories[] = {
|
|
|
|
{ "Gecko-Content-Viewers", "application/http-index-format", "@mozilla.org/xpfe/http-index-format-factory-constructor" },
|
|
|
|
{ NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module kXPFEModule = {
|
|
|
|
mozilla::Module::kVersion,
|
|
|
|
kXPFECIDs,
|
|
|
|
kXPFEContracts,
|
|
|
|
kXPFECategories
|
2000-09-05 22:49:53 +04:00
|
|
|
};
|
|
|
|
|
2010-06-10 22:11:11 +04:00
|
|
|
NSMODULE_DEFN(application) = &kXPFEModule;
|