зеркало из https://github.com/mozilla/gecko-dev.git
Back out d84bce4e8f2c (bug 943023) because of build errors on a CLOSED TREE
This commit is contained in:
Родитель
01a5173291
Коммит
ae9e2ec930
|
@ -4,7 +4,7 @@
|
|||
# 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/.
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsCompositeDataSource.cpp',
|
||||
'nsContainerEnumerator.cpp',
|
||||
'nsDefaultResourceFactory.cpp',
|
||||
|
|
|
@ -49,6 +49,8 @@
|
|||
PRLogModuleInfo* nsRDFLog = nullptr;
|
||||
#endif
|
||||
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//
|
||||
// CompositeDataSourceImpl
|
||||
|
|
|
@ -36,6 +36,11 @@
|
|||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
|
||||
static NS_DEFINE_CID(kRDFContainerUtilsCID, NS_RDFCONTAINERUTILS_CID);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class ContainerEnumeratorImpl : public nsISimpleEnumerator {
|
||||
private:
|
||||
// pseudo-constants
|
||||
|
@ -79,7 +84,7 @@ ContainerEnumeratorImpl::Init()
|
|||
{
|
||||
if (gRefCnt++ == 0) {
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIRDFService> rdf = do_GetService(NS_RDFSERVICE_CID);
|
||||
nsCOMPtr<nsIRDFService> rdf = do_GetService(kRDFServiceCID);
|
||||
NS_ASSERTION(rdf != nullptr, "unable to acquire resource manager");
|
||||
if (! rdf)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
@ -88,7 +93,7 @@ ContainerEnumeratorImpl::Init()
|
|||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get resource");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = CallGetService(NS_RDFCONTAINERUTILS_CID, &gRDFC);
|
||||
rv = CallGetService(kRDFContainerUtilsCID, &gRDFC);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
|
||||
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
|
||||
static NS_DEFINE_CID(kRDFContainerUtilsCID, NS_RDFCONTAINERUTILS_CID);
|
||||
static const char kRDFNameSpaceURI[] = RDF_NAMESPACE_URI;
|
||||
|
||||
#define RDF_SEQ_LIST_LIMIT 8
|
||||
|
||||
|
@ -687,9 +688,9 @@ RDFContainerImpl::GetNextValue(nsIRDFResource** aResult)
|
|||
}
|
||||
}
|
||||
|
||||
char buf[sizeof(RDF_NAMESPACE_URI) + 16];
|
||||
char buf[sizeof(kRDFNameSpaceURI) + 16];
|
||||
nsFixedCString nextValStr(buf, sizeof(buf), 0);
|
||||
nextValStr = RDF_NAMESPACE_URI;
|
||||
nextValStr = kRDFNameSpaceURI;
|
||||
nextValStr.Append("_");
|
||||
nextValStr.AppendInt(nextVal, 10);
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "rdf.h"
|
||||
#include "rdfutil.h"
|
||||
|
||||
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
|
||||
static const char kRDFNameSpaceURI[] = RDF_NAMESPACE_URI;
|
||||
|
||||
class RDFContainerUtilsImpl : public nsIRDFContainerUtils
|
||||
|
@ -324,7 +325,7 @@ RDFContainerUtilsImpl::RDFContainerUtilsImpl()
|
|||
if (gRefCnt++ == 0) {
|
||||
nsresult rv;
|
||||
|
||||
rv = CallGetService(NS_RDFSERVICE_CID, &gRDFService);
|
||||
rv = CallGetService(kRDFServiceCID, &gRDFService);
|
||||
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
|
|
|
@ -74,9 +74,13 @@ using namespace mozilla;
|
|||
static NS_DEFINE_IID(kIContentSinkIID, NS_ICONTENT_SINK_IID); // XXX grr...
|
||||
static NS_DEFINE_IID(kIExpatSinkIID, NS_IEXPATSINK_IID);
|
||||
static NS_DEFINE_IID(kIRDFServiceIID, NS_IRDFSERVICE_IID);
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
static NS_DEFINE_IID(kIXMLContentSinkIID, NS_IXMLCONTENT_SINK_IID);
|
||||
static NS_DEFINE_IID(kIRDFContentSinkIID, NS_IRDFCONTENTSINK_IID);
|
||||
|
||||
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
|
||||
static NS_DEFINE_CID(kRDFContainerUtilsCID, NS_RDFCONTAINERUTILS_CID);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
|
@ -278,7 +282,7 @@ RDFContentSinkImpl::RDFContentSinkImpl()
|
|||
mDocumentURL(nullptr)
|
||||
{
|
||||
if (gRefCnt++ == 0) {
|
||||
nsresult rv = CallGetService(NS_RDFSERVICE_CID, &gRDFService);
|
||||
nsresult rv = CallGetService(kRDFServiceCID, &gRDFService);
|
||||
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
|
@ -297,7 +301,7 @@ RDFContentSinkImpl::RDFContentSinkImpl()
|
|||
}
|
||||
|
||||
|
||||
rv = CallGetService(NS_RDFCONTAINERUTILS_CID, &gRDFContainerUtils);
|
||||
rv = CallGetService(kRDFContainerUtilsCID, &gRDFContainerUtils);
|
||||
|
||||
NS_RegisterStaticAtoms(rdf_atoms);
|
||||
}
|
||||
|
@ -381,7 +385,7 @@ RDFContentSinkImpl::QueryInterface(REFNSIID iid, void** result)
|
|||
if (iid.Equals(kIRDFContentSinkIID) ||
|
||||
iid.Equals(kIXMLContentSinkIID) ||
|
||||
iid.Equals(kIContentSinkIID) ||
|
||||
iid.Equals(NS_GET_IID(nsISupports))) {
|
||||
iid.Equals(kISupportsIID)) {
|
||||
*result = static_cast<nsIXMLContentSink*>(this);
|
||||
AddRef();
|
||||
return NS_OK;
|
||||
|
|
|
@ -100,6 +100,7 @@
|
|||
//----------------------------------------------------------------------
|
||||
|
||||
static NS_DEFINE_CID(kRDFInMemoryDataSourceCID, NS_RDFINMEMORYDATASOURCE_CID);
|
||||
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
static PRLogModuleInfo* gLog;
|
||||
|
@ -413,7 +414,7 @@ RDFXMLDataSourceImpl::Init()
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
if (gRefCnt++ == 0) {
|
||||
rv = CallGetService(NS_RDFSERVICE_CID, &gRDFService);
|
||||
rv = CallGetService(kRDFServiceCID, &gRDFService);
|
||||
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# 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/.
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsFileSystemDataSource.cpp',
|
||||
'nsLocalStore.cpp',
|
||||
]
|
||||
|
|
|
@ -12,7 +12,7 @@ XPIDL_SOURCES += [
|
|||
|
||||
XPIDL_MODULE = 'alerts'
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsAlertsService.cpp',
|
||||
'nsXULAlerts.cpp',
|
||||
]
|
||||
|
|
|
@ -17,7 +17,7 @@ XPIDL_SOURCES += [
|
|||
|
||||
XPIDL_MODULE = 'autocomplete'
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsAutoCompleteController.cpp',
|
||||
'nsAutoCompleteSimpleResult.cpp',
|
||||
]
|
||||
|
|
|
@ -10,10 +10,13 @@ EXPORTS += [
|
|||
'nsMediaSniffer.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
'mp3sniff.c',
|
||||
SOURCES += [
|
||||
'nsMediaSniffer.cpp',
|
||||
'nsMediaSnifferModule.cpp',
|
||||
]
|
||||
|
||||
SOURCES += [
|
||||
'mp3sniff.c',
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
* 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/. */
|
||||
|
||||
#ifndef nsMediaSniffer_h
|
||||
#define nsMediaSniffer_h
|
||||
|
||||
#include "nsIModule.h"
|
||||
#include "nsIFactory.h"
|
||||
|
@ -42,5 +40,3 @@ class nsMediaSniffer MOZ_FINAL : public nsIContentSniffer
|
|||
|
||||
static nsMediaSnifferEntry sSnifferEntries[];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -30,7 +30,7 @@ EXPORTS.protobuf.google.protobuf.io += [
|
|||
'google/protobuf/package_info.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'google/protobuf/extension_set.cc',
|
||||
'google/protobuf/generated_message_util.cc',
|
||||
'google/protobuf/io/coded_stream.cc',
|
||||
|
|
|
@ -17,9 +17,10 @@ XPIDL_SOURCES += [
|
|||
|
||||
XPIDL_MODULE = 'url-classifier'
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'ChunkSet.cpp',
|
||||
'Classifier.cpp',
|
||||
'HashStore.cpp',
|
||||
'LookupCache.cpp',
|
||||
'nsCheckSummedOutputStream.cpp',
|
||||
'nsUrlClassifierDBService.cpp',
|
||||
|
@ -30,11 +31,6 @@ UNIFIED_SOURCES += [
|
|||
'ProtocolParser.cpp',
|
||||
]
|
||||
|
||||
# contains variables that conflict with LookupCache.cpp
|
||||
SOURCES += [
|
||||
'HashStore.cpp',
|
||||
]
|
||||
|
||||
EXTRA_COMPONENTS += [
|
||||
'nsURLClassifier.manifest',
|
||||
'nsUrlClassifierHashCompleter.js',
|
||||
|
|
Загрузка…
Ссылка в новой задаче