2013-08-06 05:44:01 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
include "mozilla/dom/indexedDB/SerializationHelpers.h";
|
|
|
|
|
2013-10-01 12:25:07 -07:00
|
|
|
using class mozilla::dom::indexedDB::Key from "mozilla/dom/indexedDB/Key.h";
|
|
|
|
using mozilla::dom::indexedDB::IDBCursor::Direction from "mozilla/dom/indexedDB/IDBCursor.h";
|
|
|
|
using struct mozilla::dom::indexedDB::SerializedStructuredCloneReadInfo from "mozilla/dom/indexedDB/IndexedDatabase.h";
|
2013-08-06 05:44:01 -07:00
|
|
|
|
2013-10-01 12:25:07 -07:00
|
|
|
using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
|
2013-08-06 05:44:01 -07:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
namespace indexedDB {
|
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
struct KeyRange
|
|
|
|
{
|
|
|
|
Key lower;
|
|
|
|
Key upper;
|
|
|
|
bool lowerOpen;
|
|
|
|
bool upperOpen;
|
|
|
|
bool isOnly;
|
|
|
|
};
|
|
|
|
|
|
|
|
union OptionalKeyRange
|
|
|
|
{
|
|
|
|
KeyRange;
|
|
|
|
void_t;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GetParams
|
|
|
|
{
|
|
|
|
KeyRange keyRange;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GetAllParams
|
|
|
|
{
|
|
|
|
OptionalKeyRange optionalKeyRange;
|
|
|
|
uint32_t limit;
|
|
|
|
};
|
|
|
|
|
2013-09-24 10:14:16 -07:00
|
|
|
struct GetAllKeysParams
|
|
|
|
{
|
|
|
|
OptionalKeyRange optionalKeyRange;
|
|
|
|
uint32_t limit;
|
|
|
|
};
|
|
|
|
|
2013-08-06 05:44:01 -07:00
|
|
|
struct CountParams
|
|
|
|
{
|
|
|
|
OptionalKeyRange optionalKeyRange;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct OpenCursorParams
|
|
|
|
{
|
|
|
|
OptionalKeyRange optionalKeyRange;
|
|
|
|
Direction direction;
|
|
|
|
};
|
|
|
|
|
2013-09-25 16:11:47 -07:00
|
|
|
struct OpenKeyCursorParams
|
|
|
|
{
|
|
|
|
OptionalKeyRange optionalKeyRange;
|
|
|
|
Direction direction;
|
|
|
|
};
|
|
|
|
|
|
|
|
union OptionalStructuredCloneReadInfo
|
|
|
|
{
|
|
|
|
SerializedStructuredCloneReadInfo;
|
|
|
|
void_t;
|
|
|
|
};
|
|
|
|
|
2013-08-06 05:44:01 -07:00
|
|
|
} // namespace ipc
|
|
|
|
} // namespace indexedDB
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|