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 PIndexedDBObjectStore;
|
|
|
|
|
|
|
|
include "mozilla/dom/indexedDB/SerializationHelpers.h";
|
|
|
|
|
|
|
|
using mozilla::dom::indexedDB::Key;
|
|
|
|
using mozilla::dom::indexedDB::SerializedStructuredCloneReadInfo;
|
|
|
|
|
|
|
|
using mozilla::void_t;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
namespace indexedDB {
|
|
|
|
|
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
struct GetResponse
|
|
|
|
{
|
|
|
|
SerializedStructuredCloneReadInfo cloneInfo;
|
2012-08-01 23:02:29 -07:00
|
|
|
PBlob[] blobs;
|
2012-06-01 10:21:12 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct GetKeyResponse
|
|
|
|
{
|
|
|
|
Key key;
|
|
|
|
};
|
|
|
|
|
2012-08-01 23:02:29 -07:00
|
|
|
struct BlobArray
|
|
|
|
{
|
|
|
|
PBlob[] blobs;
|
|
|
|
};
|
|
|
|
|
2012-06-01 10:21:12 -07:00
|
|
|
struct GetAllResponse
|
|
|
|
{
|
|
|
|
SerializedStructuredCloneReadInfo[] cloneInfos;
|
2012-08-01 23:02:29 -07:00
|
|
|
BlobArray[] blobs;
|
2012-06-01 10:21:12 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct GetAllKeysResponse
|
|
|
|
{
|
|
|
|
Key[] keys;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct AddResponse
|
|
|
|
{
|
|
|
|
Key key;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PutResponse
|
|
|
|
{
|
|
|
|
Key key;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct DeleteResponse
|
|
|
|
{
|
|
|
|
void_t FIXME_Bug_753159;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ClearResponse
|
|
|
|
{
|
|
|
|
void_t FIXME_Bug_753159;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct CountResponse
|
|
|
|
{
|
|
|
|
uint64_t count;
|
|
|
|
};
|
|
|
|
|
|
|
|
union OpenCursorResponse
|
|
|
|
{
|
|
|
|
PIndexedDBCursor;
|
|
|
|
void_t;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ContinueResponse
|
|
|
|
{
|
|
|
|
Key key;
|
|
|
|
Key objectKey;
|
|
|
|
SerializedStructuredCloneReadInfo cloneInfo;
|
2012-08-01 23:02:29 -07:00
|
|
|
PBlob[] blobs;
|
2012-06-01 10:21:12 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
union ResponseValue
|
|
|
|
{
|
|
|
|
nsresult;
|
|
|
|
GetResponse;
|
|
|
|
GetKeyResponse;
|
|
|
|
GetAllResponse;
|
|
|
|
GetAllKeysResponse;
|
|
|
|
AddResponse;
|
|
|
|
PutResponse;
|
|
|
|
DeleteResponse;
|
|
|
|
ClearResponse;
|
|
|
|
CountResponse;
|
|
|
|
OpenCursorResponse;
|
|
|
|
ContinueResponse;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ipc
|
|
|
|
|
|
|
|
protocol PIndexedDBRequest
|
|
|
|
{
|
|
|
|
manager PIndexedDBObjectStore or PIndexedDBIndex or PIndexedDBCursor;
|
|
|
|
|
|
|
|
child:
|
|
|
|
__delete__(ResponseValue response);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace indexedDB
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|