Sat, 03 Jan 2015 20:18:00 +0100
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.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef mozilla_XPCOM_h |
michael@0 | 6 | #define mozilla_XPCOM_h |
michael@0 | 7 | |
michael@0 | 8 | // NOTE: the following headers are sorted topologically, not alphabetically. |
michael@0 | 9 | // Do not reorder them without review from bsmedberg. |
michael@0 | 10 | |
michael@0 | 11 | // system headers required by XPCOM headers |
michael@0 | 12 | |
michael@0 | 13 | #include <string.h> |
michael@0 | 14 | |
michael@0 | 15 | // core headers required by pretty much everything else |
michael@0 | 16 | |
michael@0 | 17 | #include "nscore.h" |
michael@0 | 18 | |
michael@0 | 19 | #include "nsXPCOMCID.h" |
michael@0 | 20 | #include "nsXPCOM.h" |
michael@0 | 21 | |
michael@0 | 22 | #include "nsError.h" |
michael@0 | 23 | #include "nsDebug.h" |
michael@0 | 24 | #include "nsMemory.h" |
michael@0 | 25 | |
michael@0 | 26 | #include "nsID.h" |
michael@0 | 27 | |
michael@0 | 28 | #include "nsISupports.h" |
michael@0 | 29 | |
michael@0 | 30 | #include "nsTArray.h" |
michael@0 | 31 | #include "nsTWeakRef.h" |
michael@0 | 32 | |
michael@0 | 33 | #include "nsCOMPtr.h" |
michael@0 | 34 | #include "nsCOMArray.h" |
michael@0 | 35 | |
michael@0 | 36 | #ifndef MOZILLA_INTERNAL_API |
michael@0 | 37 | #include "nsStringAPI.h" |
michael@0 | 38 | #else |
michael@0 | 39 | #include "nsString.h" |
michael@0 | 40 | #include "nsReadableUtils.h" |
michael@0 | 41 | #include "nsNativeCharsetUtils.h" |
michael@0 | 42 | #endif |
michael@0 | 43 | |
michael@0 | 44 | #include "nsISupportsUtils.h" |
michael@0 | 45 | #include "nsISupportsImpl.h" |
michael@0 | 46 | |
michael@0 | 47 | // core data structures |
michael@0 | 48 | |
michael@0 | 49 | #include "nsTHashtable.h" |
michael@0 | 50 | #include "nsHashKeys.h" |
michael@0 | 51 | #include "nsBaseHashtable.h" |
michael@0 | 52 | #include "nsDataHashtable.h" |
michael@0 | 53 | #include "nsInterfaceHashtable.h" |
michael@0 | 54 | #include "nsClassHashtable.h" |
michael@0 | 55 | #include "nsRefPtrHashtable.h" |
michael@0 | 56 | |
michael@0 | 57 | // interfaces that inherit directly from nsISupports |
michael@0 | 58 | |
michael@0 | 59 | #include "nsIArray.h" |
michael@0 | 60 | #include "nsIAtom.h" |
michael@0 | 61 | #include "nsIAtomService.h" |
michael@0 | 62 | #include "nsICategoryManager.h" |
michael@0 | 63 | #include "nsIClassInfo.h" |
michael@0 | 64 | #include "nsICollection.h" |
michael@0 | 65 | #include "nsIComponentManager.h" |
michael@0 | 66 | #include "nsIConsoleListener.h" |
michael@0 | 67 | #include "nsIConsoleMessage.h" |
michael@0 | 68 | #include "nsIConsoleService.h" |
michael@0 | 69 | #include "nsIDebug.h" |
michael@0 | 70 | #include "nsIDirectoryEnumerator.h" |
michael@0 | 71 | #include "nsIEnvironment.h" |
michael@0 | 72 | #include "nsIErrorService.h" |
michael@0 | 73 | #include "nsIEventTarget.h" |
michael@0 | 74 | #include "nsIException.h" |
michael@0 | 75 | #include "nsIFactory.h" |
michael@0 | 76 | #include "nsIFile.h" |
michael@0 | 77 | #include "nsIHashable.h" |
michael@0 | 78 | #include "nsIINIParser.h" |
michael@0 | 79 | #include "nsIInputStream.h" |
michael@0 | 80 | #include "nsIInterfaceRequestor.h" |
michael@0 | 81 | #include "nsILineInputStream.h" |
michael@0 | 82 | #include "nsIMemory.h" |
michael@0 | 83 | #include "nsIMutable.h" |
michael@0 | 84 | #include "nsIObserver.h" |
michael@0 | 85 | #include "nsIObserverService.h" |
michael@0 | 86 | #include "nsIOutputStream.h" |
michael@0 | 87 | #include "nsIProcess.h" |
michael@0 | 88 | #include "nsIProgrammingLanguage.h" |
michael@0 | 89 | #include "nsIProperties.h" |
michael@0 | 90 | #include "nsIPropertyBag2.h" |
michael@0 | 91 | #include "nsIRunnable.h" |
michael@0 | 92 | #include "nsISeekableStream.h" |
michael@0 | 93 | #include "nsISerializable.h" |
michael@0 | 94 | #include "nsIServiceManager.h" |
michael@0 | 95 | #include "nsIScriptableInputStream.h" |
michael@0 | 96 | #include "nsISimpleEnumerator.h" |
michael@0 | 97 | #include "nsISimpleUnicharStreamFactory.h" |
michael@0 | 98 | #include "nsIStreamBufferAccess.h" |
michael@0 | 99 | #include "nsIStringEnumerator.h" |
michael@0 | 100 | #include "nsIStorageStream.h" |
michael@0 | 101 | #include "nsISupportsIterators.h" |
michael@0 | 102 | #include "nsISupportsPrimitives.h" |
michael@0 | 103 | #include "nsISupportsPriority.h" |
michael@0 | 104 | #include "nsIThreadManager.h" |
michael@0 | 105 | #include "nsITimer.h" |
michael@0 | 106 | #include "nsIUUIDGenerator.h" |
michael@0 | 107 | #include "nsIUnicharInputStream.h" |
michael@0 | 108 | #include "nsIUnicharOutputStream.h" |
michael@0 | 109 | #include "nsIUnicharLineInputStream.h" |
michael@0 | 110 | #include "nsIVariant.h" |
michael@0 | 111 | #include "nsIVersionComparator.h" |
michael@0 | 112 | #include "nsIWritablePropertyBag2.h" |
michael@0 | 113 | |
michael@0 | 114 | // interfaces that include something above |
michael@0 | 115 | |
michael@0 | 116 | #include "nsIAsyncInputStream.h" |
michael@0 | 117 | #include "nsIAsyncOutputStream.h" |
michael@0 | 118 | #include "nsIBinaryInputStream.h" |
michael@0 | 119 | #include "nsIBinaryOutputStream.h" |
michael@0 | 120 | #include "nsIConverterInputStream.h" |
michael@0 | 121 | #include "nsIConverterOutputStream.h" |
michael@0 | 122 | #include "nsIDebug2.h" |
michael@0 | 123 | #include "nsIInputStreamTee.h" |
michael@0 | 124 | #include "nsIMultiplexInputStream.h" |
michael@0 | 125 | #include "nsIMutableArray.h" |
michael@0 | 126 | #include "nsIPersistentProperties2.h" |
michael@0 | 127 | #include "nsIStringStream.h" |
michael@0 | 128 | #include "nsIThread.h" |
michael@0 | 129 | #include "nsIThreadPool.h" |
michael@0 | 130 | |
michael@0 | 131 | // interfaces that include something above |
michael@0 | 132 | |
michael@0 | 133 | #include "nsILocalFileWin.h" |
michael@0 | 134 | #include "nsIObjectInputStream.h" |
michael@0 | 135 | #include "nsIObjectOutputStream.h" |
michael@0 | 136 | #include "nsIPipe.h" |
michael@0 | 137 | |
michael@0 | 138 | #ifdef MOZ_WIDGET_COCOA |
michael@0 | 139 | #include "nsILocalFileMac.h" |
michael@0 | 140 | #include "nsIMacUtils.h" |
michael@0 | 141 | #endif |
michael@0 | 142 | |
michael@0 | 143 | // xpcom/glue utility headers |
michael@0 | 144 | |
michael@0 | 145 | #include "nsComponentManagerUtils.h" |
michael@0 | 146 | #include "nsServiceManagerUtils.h" |
michael@0 | 147 | |
michael@0 | 148 | #include "nsIWeakReferenceUtils.h" |
michael@0 | 149 | #include "nsWeakReference.h" |
michael@0 | 150 | |
michael@0 | 151 | #include "nsArrayEnumerator.h" |
michael@0 | 152 | #include "nsArrayUtils.h" |
michael@0 | 153 | #include "nsCRTGlue.h" |
michael@0 | 154 | #include "nsCycleCollectionParticipant.h" |
michael@0 | 155 | #include "nsDeque.h" |
michael@0 | 156 | #include "nsEnumeratorUtils.h" |
michael@0 | 157 | #include "nsIClassInfoImpl.h" |
michael@0 | 158 | #include "mozilla/ModuleUtils.h" |
michael@0 | 159 | #include "nsIInterfaceRequestorUtils.h" |
michael@0 | 160 | #include "nsINIParser.h" |
michael@0 | 161 | #include "nsProxyRelease.h" |
michael@0 | 162 | #include "nsTObserverArray.h" |
michael@0 | 163 | #include "nsTextFormatter.h" |
michael@0 | 164 | #include "nsThreadUtils.h" |
michael@0 | 165 | #include "nsVersionComparator.h" |
michael@0 | 166 | #include "nsXPTCUtils.h" |
michael@0 | 167 | |
michael@0 | 168 | // xpcom/base utility headers |
michael@0 | 169 | |
michael@0 | 170 | #include "nsAgg.h" |
michael@0 | 171 | #include "nsAutoRef.h" |
michael@0 | 172 | #include "nsInterfaceRequestorAgg.h" |
michael@0 | 173 | |
michael@0 | 174 | // xpcom/io utility headers |
michael@0 | 175 | |
michael@0 | 176 | #include "nsAppDirectoryServiceDefs.h" |
michael@0 | 177 | #include "nsDirectoryServiceDefs.h" |
michael@0 | 178 | #include "nsDirectoryServiceUtils.h" |
michael@0 | 179 | |
michael@0 | 180 | #endif // mozilla_XPCOM_h |