2014-09-27 03:21:57 +04: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 protocol PBackgroundIDBTransaction;
|
|
|
|
include protocol PBackgroundIDBVersionChangeTransaction;
|
2015-09-09 14:15:05 +03:00
|
|
|
include protocol PBackgroundMutableFile;
|
2017-05-23 08:50:33 +03:00
|
|
|
include protocol PChildToParentStream; // FIXME: bug 792908
|
|
|
|
include protocol PFileDescriptorSet; // FIXME: bug 792908
|
|
|
|
include protocol PIPCBlobInputStream; // FIXME: bug 792908
|
|
|
|
include protocol PParentToChildStream; // FIXME: bug 792908
|
2014-09-27 03:21:57 +04:00
|
|
|
|
|
|
|
include PBackgroundIDBSharedTypes;
|
|
|
|
|
|
|
|
include "mozilla/dom/indexedDB/SerializationHelpers.h";
|
|
|
|
|
|
|
|
using struct mozilla::void_t
|
|
|
|
from "ipc/IPCMessageUtils.h";
|
|
|
|
|
|
|
|
using class mozilla::dom::indexedDB::Key
|
|
|
|
from "mozilla/dom/indexedDB/Key.h";
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
namespace indexedDB {
|
|
|
|
|
|
|
|
struct ContinueParams
|
|
|
|
{
|
|
|
|
Key key;
|
|
|
|
};
|
|
|
|
|
2016-07-26 10:26:50 +03:00
|
|
|
struct ContinuePrimaryKeyParams
|
|
|
|
{
|
|
|
|
Key key;
|
|
|
|
Key primaryKey;
|
|
|
|
};
|
|
|
|
|
2014-09-27 03:21:57 +04:00
|
|
|
struct AdvanceParams
|
|
|
|
{
|
|
|
|
uint32_t count;
|
|
|
|
};
|
|
|
|
|
|
|
|
union CursorRequestParams
|
|
|
|
{
|
|
|
|
ContinueParams;
|
2016-07-26 10:26:50 +03:00
|
|
|
ContinuePrimaryKeyParams;
|
2014-09-27 03:21:57 +04:00
|
|
|
AdvanceParams;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ObjectStoreCursorResponse
|
|
|
|
{
|
|
|
|
Key key;
|
|
|
|
SerializedStructuredCloneReadInfo cloneInfo;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ObjectStoreKeyCursorResponse
|
|
|
|
{
|
|
|
|
Key key;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IndexCursorResponse
|
|
|
|
{
|
|
|
|
Key key;
|
2015-09-04 22:12:37 +03:00
|
|
|
Key sortKey;
|
2014-09-27 03:21:57 +04:00
|
|
|
Key objectKey;
|
|
|
|
SerializedStructuredCloneReadInfo cloneInfo;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IndexKeyCursorResponse
|
|
|
|
{
|
|
|
|
Key key;
|
2015-09-04 22:12:37 +03:00
|
|
|
Key sortKey;
|
2014-09-27 03:21:57 +04:00
|
|
|
Key objectKey;
|
|
|
|
};
|
|
|
|
|
|
|
|
union CursorResponse
|
|
|
|
{
|
|
|
|
void_t;
|
|
|
|
nsresult;
|
2015-08-20 00:59:25 +03:00
|
|
|
ObjectStoreCursorResponse[];
|
2014-09-27 03:21:57 +04:00
|
|
|
ObjectStoreKeyCursorResponse;
|
|
|
|
IndexCursorResponse;
|
|
|
|
IndexKeyCursorResponse;
|
|
|
|
};
|
|
|
|
|
|
|
|
protocol PBackgroundIDBCursor
|
|
|
|
{
|
|
|
|
manager PBackgroundIDBTransaction or PBackgroundIDBVersionChangeTransaction;
|
|
|
|
|
|
|
|
parent:
|
2016-01-27 00:51:53 +03:00
|
|
|
async DeleteMe();
|
2014-09-27 03:21:57 +04:00
|
|
|
|
2016-07-26 13:51:19 +03:00
|
|
|
async Continue(CursorRequestParams params);
|
2014-09-27 03:21:57 +04:00
|
|
|
|
|
|
|
child:
|
2016-01-27 00:51:53 +03:00
|
|
|
async __delete__();
|
2014-09-27 03:21:57 +04:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async Response(CursorResponse response);
|
2014-09-27 03:21:57 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace indexedDB
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|