michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: include "mozilla/dom/indexedDB/SerializationHelpers.h"; michael@0: michael@0: using class mozilla::dom::indexedDB::Key from "mozilla/dom/indexedDB/Key.h"; michael@0: using mozilla::dom::indexedDB::IDBCursor::Direction from "mozilla/dom/indexedDB/IDBCursor.h"; michael@0: using struct mozilla::dom::indexedDB::SerializedStructuredCloneReadInfo from "mozilla/dom/indexedDB/IndexedDatabase.h"; michael@0: michael@0: using struct mozilla::void_t from "ipc/IPCMessageUtils.h"; michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: namespace indexedDB { michael@0: namespace ipc { michael@0: michael@0: struct KeyRange michael@0: { michael@0: Key lower; michael@0: Key upper; michael@0: bool lowerOpen; michael@0: bool upperOpen; michael@0: bool isOnly; michael@0: }; michael@0: michael@0: union OptionalKeyRange michael@0: { michael@0: KeyRange; michael@0: void_t; michael@0: }; michael@0: michael@0: struct GetParams michael@0: { michael@0: KeyRange keyRange; michael@0: }; michael@0: michael@0: struct GetAllParams michael@0: { michael@0: OptionalKeyRange optionalKeyRange; michael@0: uint32_t limit; michael@0: }; michael@0: michael@0: struct GetAllKeysParams michael@0: { michael@0: OptionalKeyRange optionalKeyRange; michael@0: uint32_t limit; michael@0: }; michael@0: michael@0: struct CountParams michael@0: { michael@0: OptionalKeyRange optionalKeyRange; michael@0: }; michael@0: michael@0: struct OpenCursorParams michael@0: { michael@0: OptionalKeyRange optionalKeyRange; michael@0: Direction direction; michael@0: }; michael@0: michael@0: struct OpenKeyCursorParams michael@0: { michael@0: OptionalKeyRange optionalKeyRange; michael@0: Direction direction; michael@0: }; michael@0: michael@0: union OptionalStructuredCloneReadInfo michael@0: { michael@0: SerializedStructuredCloneReadInfo; michael@0: void_t; michael@0: }; michael@0: michael@0: } // namespace ipc michael@0: } // namespace indexedDB michael@0: } // namespace dom michael@0: } // namespace mozilla