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 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include protocol PIndexedDBDatabase;
6 include protocol PIndexedDBObjectStore;
8 include "mozilla/dom/indexedDB/SerializationHelpers.h";
10 using struct mozilla::dom::indexedDB::ObjectStoreInfoGuts from "mozilla/dom/indexedDB/DatabaseInfo.h";
12 namespace mozilla {
13 namespace dom {
14 namespace indexedDB {
16 namespace ipc {
18 struct CreateObjectStoreParams
19 {
20 ObjectStoreInfoGuts info;
21 };
23 struct GetObjectStoreParams
24 {
25 nsString name;
26 };
28 union ObjectStoreConstructorParams
29 {
30 CreateObjectStoreParams;
31 GetObjectStoreParams;
32 };
34 struct CompleteResult
35 { };
37 struct AbortResult
38 {
39 nsresult errorCode;
40 };
42 union CompleteParams
43 {
44 CompleteResult;
45 AbortResult;
46 };
48 } // namespace ipc
50 protocol PIndexedDBTransaction
51 {
52 manager PIndexedDBDatabase;
54 manages PIndexedDBObjectStore;
56 parent:
57 __delete__();
59 PIndexedDBObjectStore(ObjectStoreConstructorParams params);
61 Abort(nsresult abortCode);
63 AllRequestsFinished();
65 DeleteObjectStore(nsString name);
67 child:
68 Complete(CompleteParams params);
69 };
71 } // namespace indexedDB
72 } // namespace dom
73 } // namespace mozilla