dom/indexedDB/ipc/PIndexedDBRequest.ipdl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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 file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 include protocol PBlob;
michael@0 6 include protocol PIndexedDBCursor;
michael@0 7 include protocol PIndexedDBIndex;
michael@0 8 include protocol PIndexedDBObjectStore;
michael@0 9
michael@0 10 include "mozilla/dom/indexedDB/SerializationHelpers.h";
michael@0 11
michael@0 12 using class mozilla::dom::indexedDB::Key from "mozilla/dom/indexedDB/Key.h";
michael@0 13 using struct mozilla::dom::indexedDB::SerializedStructuredCloneReadInfo from "mozilla/dom/indexedDB/IndexedDatabase.h";
michael@0 14
michael@0 15 using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
michael@0 16
michael@0 17 namespace mozilla {
michael@0 18 namespace dom {
michael@0 19 namespace indexedDB {
michael@0 20
michael@0 21 namespace ipc {
michael@0 22
michael@0 23 struct GetResponse
michael@0 24 {
michael@0 25 SerializedStructuredCloneReadInfo cloneInfo;
michael@0 26 PBlob[] blobs;
michael@0 27 };
michael@0 28
michael@0 29 struct GetKeyResponse
michael@0 30 {
michael@0 31 Key key;
michael@0 32 };
michael@0 33
michael@0 34 struct BlobArray
michael@0 35 {
michael@0 36 PBlob[] blobs;
michael@0 37 };
michael@0 38
michael@0 39 struct GetAllResponse
michael@0 40 {
michael@0 41 SerializedStructuredCloneReadInfo[] cloneInfos;
michael@0 42 BlobArray[] blobs;
michael@0 43 };
michael@0 44
michael@0 45 struct GetAllKeysResponse
michael@0 46 {
michael@0 47 Key[] keys;
michael@0 48 };
michael@0 49
michael@0 50 struct AddResponse
michael@0 51 {
michael@0 52 Key key;
michael@0 53 };
michael@0 54
michael@0 55 struct PutResponse
michael@0 56 {
michael@0 57 Key key;
michael@0 58 };
michael@0 59
michael@0 60 struct DeleteResponse
michael@0 61 { };
michael@0 62
michael@0 63 struct ClearResponse
michael@0 64 { };
michael@0 65
michael@0 66 struct CountResponse
michael@0 67 {
michael@0 68 uint64_t count;
michael@0 69 };
michael@0 70
michael@0 71 union OpenCursorResponse
michael@0 72 {
michael@0 73 PIndexedDBCursor;
michael@0 74 void_t;
michael@0 75 };
michael@0 76
michael@0 77 struct ContinueResponse
michael@0 78 {
michael@0 79 Key key;
michael@0 80 Key objectKey;
michael@0 81 SerializedStructuredCloneReadInfo cloneInfo;
michael@0 82 PBlob[] blobs;
michael@0 83 };
michael@0 84
michael@0 85 union ResponseValue
michael@0 86 {
michael@0 87 nsresult;
michael@0 88 GetResponse;
michael@0 89 GetKeyResponse;
michael@0 90 GetAllResponse;
michael@0 91 GetAllKeysResponse;
michael@0 92 AddResponse;
michael@0 93 PutResponse;
michael@0 94 DeleteResponse;
michael@0 95 ClearResponse;
michael@0 96 CountResponse;
michael@0 97 OpenCursorResponse;
michael@0 98 ContinueResponse;
michael@0 99 };
michael@0 100
michael@0 101 } // namespace ipc
michael@0 102
michael@0 103 protocol PIndexedDBRequest
michael@0 104 {
michael@0 105 manager PIndexedDBObjectStore or PIndexedDBIndex or PIndexedDBCursor;
michael@0 106
michael@0 107 child:
michael@0 108 __delete__(ResponseValue response);
michael@0 109 };
michael@0 110
michael@0 111 } // namespace indexedDB
michael@0 112 } // namespace dom
michael@0 113 } // namespace mozilla

mercurial