1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/indexedDB/ipc/IndexedDBParams.ipdlh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,76 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +include "mozilla/dom/indexedDB/SerializationHelpers.h"; 1.9 + 1.10 +using class mozilla::dom::indexedDB::Key from "mozilla/dom/indexedDB/Key.h"; 1.11 +using mozilla::dom::indexedDB::IDBCursor::Direction from "mozilla/dom/indexedDB/IDBCursor.h"; 1.12 +using struct mozilla::dom::indexedDB::SerializedStructuredCloneReadInfo from "mozilla/dom/indexedDB/IndexedDatabase.h"; 1.13 + 1.14 +using struct mozilla::void_t from "ipc/IPCMessageUtils.h"; 1.15 + 1.16 +namespace mozilla { 1.17 +namespace dom { 1.18 +namespace indexedDB { 1.19 +namespace ipc { 1.20 + 1.21 +struct KeyRange 1.22 +{ 1.23 + Key lower; 1.24 + Key upper; 1.25 + bool lowerOpen; 1.26 + bool upperOpen; 1.27 + bool isOnly; 1.28 +}; 1.29 + 1.30 +union OptionalKeyRange 1.31 +{ 1.32 + KeyRange; 1.33 + void_t; 1.34 +}; 1.35 + 1.36 +struct GetParams 1.37 +{ 1.38 + KeyRange keyRange; 1.39 +}; 1.40 + 1.41 +struct GetAllParams 1.42 +{ 1.43 + OptionalKeyRange optionalKeyRange; 1.44 + uint32_t limit; 1.45 +}; 1.46 + 1.47 +struct GetAllKeysParams 1.48 +{ 1.49 + OptionalKeyRange optionalKeyRange; 1.50 + uint32_t limit; 1.51 +}; 1.52 + 1.53 +struct CountParams 1.54 +{ 1.55 + OptionalKeyRange optionalKeyRange; 1.56 +}; 1.57 + 1.58 +struct OpenCursorParams 1.59 +{ 1.60 + OptionalKeyRange optionalKeyRange; 1.61 + Direction direction; 1.62 +}; 1.63 + 1.64 +struct OpenKeyCursorParams 1.65 +{ 1.66 + OptionalKeyRange optionalKeyRange; 1.67 + Direction direction; 1.68 +}; 1.69 + 1.70 +union OptionalStructuredCloneReadInfo 1.71 +{ 1.72 + SerializedStructuredCloneReadInfo; 1.73 + void_t; 1.74 +}; 1.75 + 1.76 +} // namespace ipc 1.77 +} // namespace indexedDB 1.78 +} // namespace dom 1.79 +} // namespace mozilla