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.
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsCollationUnix_h__
8 #define nsCollationUnix_h__
11 #include "nsICollation.h"
12 #include "nsCollation.h" // static library
13 #include "plstr.h"
14 #include "mozilla/Attributes.h"
15 #include "nsString.h"
19 class nsCollationUnix MOZ_FINAL : public nsICollation {
21 protected:
22 nsCollation *mCollation;
23 nsCString mLocale;
24 nsCString mSavedLocale;
25 bool mUseCodePointOrder;
27 void DoSetLocale();
28 void DoRestoreLocale();
30 public:
31 nsCollationUnix();
32 ~nsCollationUnix();
34 // nsISupports interface
35 NS_DECL_ISUPPORTS
37 // nsICollation interface
38 NS_DECL_NSICOLLATION
40 };
42 #endif /* nsCollationUnix_h__ */