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.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsMacUtilsImpl_h___
7 #define nsMacUtilsImpl_h___
9 #include "nsIMacUtils.h"
10 #include "nsString.h"
11 #include "mozilla/Attributes.h"
13 class nsMacUtilsImpl MOZ_FINAL : public nsIMacUtils
14 {
15 public:
16 NS_DECL_ISUPPORTS
17 NS_DECL_NSIMACUTILS
19 nsMacUtilsImpl() {}
21 private:
22 ~nsMacUtilsImpl() {}
24 nsresult GetArchString(nsAString& archString);
26 // A string containing a "-" delimited list of architectures
27 // in our binary.
28 nsString mBinaryArchs;
29 };
31 // Global singleton service
32 // 697BD3FD-43E5-41CE-AD5E-C339175C0818
33 #define NS_MACUTILSIMPL_CID \
34 {0x697BD3FD, 0x43E5, 0x41CE, {0xAD, 0x5E, 0xC3, 0x39, 0x17, 0x5C, 0x08, 0x18}}
35 #define NS_MACUTILSIMPL_CONTRACTID "@mozilla.org/xpcom/mac-utils;1"
37 #endif /* nsMacUtilsImpl_h___ */