2012-06-01 10:21:12 -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/. */
|
|
|
|
|
2012-08-01 23:02:29 -07:00
|
|
|
include protocol PBlob;
|
2012-06-01 10:21:12 -07:00
|
|
|
include protocol PIndexedDBCursor;
|
|
|
|
include protocol PIndexedDBObjectStore;
|
|
|
|
include protocol PIndexedDBRequest;
|
|
|
|
|
2013-08-06 05:44:01 -07:00
|
|
|
include IndexedDBParams;
|
2012-06-01 10:21:12 -07:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
namespace indexedDB {
|
|
|
|
|
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
struct GetKeyParams
|
|
|
|
{
|
|
|
|
KeyRange keyRange;
|
|
|
|
};
|
|
|
|
|
|
|
|
union IndexRequestParams
|
|
|
|
{
|
|
|
|
GetParams;
|
|
|
|
GetKeyParams;
|
|
|
|
GetAllParams;
|
|
|
|
GetAllKeysParams;
|
|
|
|
CountParams;
|
|
|
|
OpenCursorParams;
|
|
|
|
OpenKeyCursorParams;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IndexCursorConstructorParams
|
|
|
|
{
|
|
|
|
PIndexedDBRequest request;
|
|
|
|
Direction direction;
|
|
|
|
Key key;
|
|
|
|
Key objectKey;
|
|
|
|
OptionalStructuredCloneReadInfo optionalCloneInfo;
|
2012-08-01 23:02:29 -07:00
|
|
|
PBlob[] blobs;
|
2012-06-01 10:21:12 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ipc
|
|
|
|
|
|
|
|
protocol PIndexedDBIndex
|
|
|
|
{
|
|
|
|
manager PIndexedDBObjectStore;
|
|
|
|
|
|
|
|
manages PIndexedDBCursor;
|
|
|
|
manages PIndexedDBRequest;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
__delete__();
|
|
|
|
|
|
|
|
PIndexedDBRequest(IndexRequestParams params);
|
|
|
|
|
|
|
|
child:
|
|
|
|
PIndexedDBCursor(IndexCursorConstructorParams params);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace indexedDB
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|