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 PIndexedDBIndex;
|
|
|
|
include protocol PIndexedDBRequest;
|
|
|
|
include protocol PIndexedDBTransaction;
|
|
|
|
|
2013-08-06 05:44:01 -07:00
|
|
|
include IndexedDBParams;
|
2012-06-01 10:21:12 -07:00
|
|
|
|
2013-10-01 12:25:07 -07:00
|
|
|
using struct mozilla::dom::indexedDB::IndexInfo from "mozilla/dom/indexedDB/DatabaseInfo.h";
|
|
|
|
using struct mozilla::dom::indexedDB::IndexUpdateInfo from "mozilla/dom/indexedDB/DatabaseInfo.h";
|
|
|
|
using struct mozilla::dom::indexedDB::SerializedStructuredCloneWriteInfo from "mozilla/dom/indexedDB/IndexedDatabase.h";
|
2012-06-01 10:21:12 -07:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
namespace indexedDB {
|
|
|
|
|
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
struct AddPutParams
|
|
|
|
{
|
|
|
|
SerializedStructuredCloneWriteInfo cloneInfo;
|
|
|
|
Key key;
|
|
|
|
IndexUpdateInfo[] indexUpdateInfos;
|
2012-08-01 23:02:29 -07:00
|
|
|
PBlob[] blobs;
|
2012-06-01 10:21:12 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct AddParams
|
|
|
|
{
|
|
|
|
AddPutParams commonParams;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PutParams
|
|
|
|
{
|
|
|
|
AddPutParams commonParams;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct DeleteParams
|
|
|
|
{
|
|
|
|
KeyRange keyRange;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ClearParams
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
union ObjectStoreRequestParams
|
|
|
|
{
|
|
|
|
GetParams;
|
|
|
|
GetAllParams;
|
2013-09-24 10:14:16 -07:00
|
|
|
GetAllKeysParams;
|
2012-06-01 10:21:12 -07:00
|
|
|
AddParams;
|
|
|
|
PutParams;
|
|
|
|
DeleteParams;
|
|
|
|
ClearParams;
|
|
|
|
CountParams;
|
|
|
|
OpenCursorParams;
|
2013-09-25 16:11:47 -07:00
|
|
|
OpenKeyCursorParams;
|
2012-06-01 10:21:12 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct CreateIndexParams
|
|
|
|
{
|
|
|
|
IndexInfo info;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GetIndexParams
|
|
|
|
{
|
|
|
|
nsString name;
|
|
|
|
};
|
|
|
|
|
|
|
|
union IndexConstructorParams
|
|
|
|
{
|
|
|
|
CreateIndexParams;
|
|
|
|
GetIndexParams;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ObjectStoreCursorConstructorParams
|
|
|
|
{
|
|
|
|
PIndexedDBRequest request;
|
|
|
|
Direction direction;
|
|
|
|
Key key;
|
2013-09-25 16:11:47 -07:00
|
|
|
OptionalStructuredCloneReadInfo optionalCloneInfo;
|
2012-08-01 23:02:29 -07:00
|
|
|
PBlob[] blobs;
|
2012-06-01 10:21:12 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ipc
|
|
|
|
|
|
|
|
protocol PIndexedDBObjectStore
|
|
|
|
{
|
|
|
|
manager PIndexedDBTransaction;
|
|
|
|
|
|
|
|
manages PIndexedDBCursor;
|
|
|
|
manages PIndexedDBIndex;
|
|
|
|
manages PIndexedDBRequest;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
__delete__();
|
|
|
|
|
|
|
|
PIndexedDBIndex(IndexConstructorParams params);
|
|
|
|
PIndexedDBRequest(ObjectStoreRequestParams params);
|
|
|
|
|
|
|
|
DeleteIndex(nsString name);
|
|
|
|
|
|
|
|
child:
|
|
|
|
PIndexedDBCursor(ObjectStoreCursorConstructorParams params);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace indexedDB
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|