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: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 /* local header for xpconnect tests components */
9 #ifndef xpctest_private_h___
10 #define xpctest_private_h___
12 #include "nsISupports.h"
13 #include "nsMemory.h"
14 #include "nsStringGlue.h"
15 #include "xpctest_attributes.h"
16 #include "xpctest_params.h"
17 #include "mozilla/Attributes.h"
19 class xpcTestObjectReadOnly MOZ_FINAL : public nsIXPCTestObjectReadOnly {
20 public:
21 NS_DECL_ISUPPORTS
22 NS_DECL_NSIXPCTESTOBJECTREADONLY
23 xpcTestObjectReadOnly();
25 private:
26 bool boolProperty;
27 int16_t shortProperty;
28 int32_t longProperty;
29 float floatProperty;
30 char charProperty;
31 PRTime timeProperty;
32 };
34 class xpcTestObjectReadWrite MOZ_FINAL : public nsIXPCTestObjectReadWrite {
35 public:
36 NS_DECL_ISUPPORTS
37 NS_DECL_NSIXPCTESTOBJECTREADWRITE
39 xpcTestObjectReadWrite();
40 ~xpcTestObjectReadWrite();
42 private:
43 bool boolProperty;
44 int16_t shortProperty;
45 int32_t longProperty;
46 float floatProperty;
47 char charProperty;
48 char *stringProperty;
49 PRTime timeProperty;
50 };
52 class nsXPCTestParams MOZ_FINAL : public nsIXPCTestParams
53 {
54 public:
55 NS_DECL_ISUPPORTS
56 NS_DECL_NSIXPCTESTPARAMS
58 nsXPCTestParams();
60 private:
61 ~nsXPCTestParams();
62 };
64 #endif /* xpctest_private_h___ */