mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
85b2edc046
Backed out changeset bb0041643a0f (bug 920800) Backed out changeset 24818d9b7470 (bug 920633) Backed out changeset d49b0f47b05a (bug 920179)
113 lines
1.9 KiB
Plaintext
113 lines
1.9 KiB
Plaintext
/* 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 protocol PBlob;
|
|
include protocol PIndexedDBCursor;
|
|
include protocol PIndexedDBIndex;
|
|
include protocol PIndexedDBRequest;
|
|
include protocol PIndexedDBTransaction;
|
|
|
|
include IndexedDBParams;
|
|
|
|
using mozilla::dom::indexedDB::IndexInfo;
|
|
using mozilla::dom::indexedDB::IndexUpdateInfo;
|
|
using mozilla::dom::indexedDB::SerializedStructuredCloneReadInfo;
|
|
using mozilla::dom::indexedDB::SerializedStructuredCloneWriteInfo;
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
namespace indexedDB {
|
|
|
|
namespace ipc {
|
|
|
|
struct AddPutParams
|
|
{
|
|
SerializedStructuredCloneWriteInfo cloneInfo;
|
|
Key key;
|
|
IndexUpdateInfo[] indexUpdateInfos;
|
|
PBlob[] blobs;
|
|
};
|
|
|
|
struct AddParams
|
|
{
|
|
AddPutParams commonParams;
|
|
};
|
|
|
|
struct PutParams
|
|
{
|
|
AddPutParams commonParams;
|
|
};
|
|
|
|
struct DeleteParams
|
|
{
|
|
KeyRange keyRange;
|
|
};
|
|
|
|
struct ClearParams
|
|
{
|
|
};
|
|
|
|
union ObjectStoreRequestParams
|
|
{
|
|
GetParams;
|
|
GetAllParams;
|
|
AddParams;
|
|
PutParams;
|
|
DeleteParams;
|
|
ClearParams;
|
|
CountParams;
|
|
OpenCursorParams;
|
|
};
|
|
|
|
struct CreateIndexParams
|
|
{
|
|
IndexInfo info;
|
|
};
|
|
|
|
struct GetIndexParams
|
|
{
|
|
nsString name;
|
|
};
|
|
|
|
union IndexConstructorParams
|
|
{
|
|
CreateIndexParams;
|
|
GetIndexParams;
|
|
};
|
|
|
|
struct ObjectStoreCursorConstructorParams
|
|
{
|
|
PIndexedDBRequest request;
|
|
Direction direction;
|
|
Key key;
|
|
SerializedStructuredCloneReadInfo cloneInfo;
|
|
PBlob[] blobs;
|
|
};
|
|
|
|
} // 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
|