xpcom/build/XPCOMModule.inc

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1     COMPONENT(MEMORY, nsMemoryImpl::Create)
     2     COMPONENT(DEBUG,  nsDebugImpl::Create)
     3     COMPONENT(ERRORSERVICE, nsErrorService::Create)
     5     COMPONENT(CATEGORYMANAGER, nsCategoryManager::Create)
     7     COMPONENT(SCRIPTABLEINPUTSTREAM, nsScriptableInputStream::Create)
     8     COMPONENT(BINARYINPUTSTREAM, nsBinaryInputStreamConstructor)
     9     COMPONENT(BINARYOUTPUTSTREAM, nsBinaryOutputStreamConstructor)
    10     COMPONENT(STORAGESTREAM, nsStorageStreamConstructor)
    11     COMPONENT(VERSIONCOMPARATOR, nsVersionComparatorImplConstructor)
    12     COMPONENT(SCRIPTABLEBASE64ENCODER, nsScriptableBase64EncoderConstructor)
    13     COMPONENT(PIPE, nsPipeConstructor)
    15     COMPONENT(PROPERTIES, nsPropertiesConstructor)
    17     COMPONENT(PERSISTENTPROPERTIES, nsPersistentProperties::Create)
    19     COMPONENT(SUPPORTSARRAY, nsSupportsArray::Create)
    20     COMPONENT(ARRAY, nsArray::XPCOMConstructor)
    21     COMPONENT(CONSOLESERVICE, nsConsoleServiceConstructor)
    22     COMPONENT(ATOMSERVICE, nsAtomServiceConstructor)
    23     COMPONENT(OBSERVERSERVICE, nsObserverService::Create)
    24 #ifdef MOZ_VISUAL_EVENT_TRACER
    25     COMPONENT(VISUALEVENTTRACER, VisualEventTracerConstructor)
    26 #endif
    28     COMPONENT(TIMER, nsTimerImplConstructor)
    30 #define COMPONENT_SUPPORTS(TYPE, Type)                                         \
    31   COMPONENT(SUPPORTS_##TYPE, nsSupports##Type##ImplConstructor)
    33     COMPONENT_SUPPORTS(ID, ID)
    34     COMPONENT_SUPPORTS(STRING, String)
    35     COMPONENT_SUPPORTS(CSTRING, CString)
    36     COMPONENT_SUPPORTS(PRBOOL, PRBool)
    37     COMPONENT_SUPPORTS(PRUINT8, PRUint8)
    38     COMPONENT_SUPPORTS(PRUINT16, PRUint16)
    39     COMPONENT_SUPPORTS(PRUINT32, PRUint32)
    40     COMPONENT_SUPPORTS(PRUINT64, PRUint64)
    41     COMPONENT_SUPPORTS(PRTIME, PRTime)
    42     COMPONENT_SUPPORTS(CHAR, Char)
    43     COMPONENT_SUPPORTS(PRINT16, PRInt16)
    44     COMPONENT_SUPPORTS(PRINT32, PRInt32)
    45     COMPONENT_SUPPORTS(PRINT64, PRInt64)
    46     COMPONENT_SUPPORTS(FLOAT, Float)
    47     COMPONENT_SUPPORTS(DOUBLE, Double)
    48     COMPONENT_SUPPORTS(VOID, Void)
    49     COMPONENT_SUPPORTS(INTERFACE_POINTER, InterfacePointer)
    51 #undef COMPONENT_SUPPORTS
    52     COMPONENT(LOCAL_FILE, nsLocalFile::nsLocalFileConstructor)
    53     COMPONENT(DIRECTORY_SERVICE, nsDirectoryService::Create)
    54     COMPONENT(PROCESS, nsProcessConstructor)
    55     COMPONENT(ENVIRONMENT, nsEnvironment::Create)
    57     COMPONENT(THREADMANAGER, nsThreadManagerGetSingleton)
    58     COMPONENT(THREADPOOL, nsThreadPoolConstructor)
    60     COMPONENT(STRINGINPUTSTREAM, nsStringInputStreamConstructor)
    61     COMPONENT(MULTIPLEXINPUTSTREAM, nsMultiplexInputStreamConstructor)
    63     COMPONENT(VARIANT, nsVariantConstructor)
    64     COMPONENT(INTERFACEINFOMANAGER_SERVICE, nsXPTIInterfaceInfoManagerGetSingleton)
    66     COMPONENT(HASH_PROPERTY_BAG, nsHashPropertyBagConstructor)
    68     COMPONENT(UUID_GENERATOR, nsUUIDGeneratorConstructor)
    70 #if defined(XP_WIN)
    71     COMPONENT(WINDOWSREGKEY, nsWindowsRegKeyConstructor)
    72 #endif
    74 #if defined(MOZ_WIDGET_COCOA)
    75     COMPONENT(MACUTILSIMPL, nsMacUtilsImplConstructor)
    76 #endif
    78     COMPONENT(SYSTEMINFO, nsSystemInfoConstructor)
    79     COMPONENT(MEMORY_REPORTER_MANAGER, nsMemoryReporterManagerConstructor)
    80     COMPONENT(MEMORY_INFO_DUMPER, nsMemoryInfoDumperConstructor)
    81     COMPONENT(IOUTIL, nsIOUtilConstructor)
    82     COMPONENT(CYCLE_COLLECTOR_LOGGER, nsCycleCollectorLoggerConstructor)
    83     COMPONENT(MESSAGE_LOOP, nsMessageLoopConstructor)
    84     COMPONENT(STATUS_REPORTER_MANAGER, nsStatusReporterManagerConstructor)

mercurial