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 PBackgroundIDBDatabaseFile;
|
2015-09-09 14:15:05 +03:00
|
|
|
include protocol PBackgroundIDBDatabaseRequest;
|
2014-09-27 03:21:57 +04:00
|
|
|
include protocol PBackgroundIDBFactory;
|
|
|
|
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
|
|
|
|
2017-05-23 08:50:33 +03:00
|
|
|
include IPCBlob;
|
2014-09-27 03:21:57 +04:00
|
|
|
include InputStreamParams;
|
|
|
|
include PBackgroundIDBSharedTypes;
|
|
|
|
|
|
|
|
include "mozilla/dom/indexedDB/SerializationHelpers.h";
|
|
|
|
|
|
|
|
using struct mozilla::null_t
|
|
|
|
from "ipc/IPCMessageUtils.h";
|
|
|
|
|
2016-02-17 00:46:08 +03:00
|
|
|
using mozilla::dom::IDBTransaction::Mode
|
|
|
|
from "mozilla/dom/IDBTransaction.h";
|
2014-09-27 03:21:57 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
namespace indexedDB {
|
|
|
|
|
2015-09-09 14:15:05 +03:00
|
|
|
struct CreateFileParams
|
|
|
|
{
|
|
|
|
nsString name;
|
|
|
|
nsString type;
|
|
|
|
};
|
|
|
|
|
|
|
|
union DatabaseRequestParams
|
|
|
|
{
|
|
|
|
CreateFileParams;
|
|
|
|
};
|
|
|
|
|
|
|
|
sync protocol PBackgroundIDBDatabase
|
2014-09-27 03:21:57 +04:00
|
|
|
{
|
|
|
|
manager PBackgroundIDBFactory;
|
|
|
|
|
|
|
|
manages PBackgroundIDBDatabaseFile;
|
2015-09-09 14:15:05 +03:00
|
|
|
manages PBackgroundIDBDatabaseRequest;
|
2014-09-27 03:21:57 +04:00
|
|
|
manages PBackgroundIDBTransaction;
|
|
|
|
manages PBackgroundIDBVersionChangeTransaction;
|
2015-09-09 14:15:05 +03:00
|
|
|
manages PBackgroundMutableFile;
|
2014-09-27 03:21:57 +04:00
|
|
|
|
|
|
|
parent:
|
2016-01-27 00:51:53 +03:00
|
|
|
async DeleteMe();
|
2014-09-27 03:21:57 +04:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async Blocked();
|
2014-09-27 03:21:57 +04:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async Close();
|
2014-09-27 03:21:57 +04:00
|
|
|
|
2017-05-23 08:50:33 +03:00
|
|
|
async PBackgroundIDBDatabaseFile(IPCBlob blob);
|
2014-09-27 03:21:57 +04:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async PBackgroundIDBDatabaseRequest(DatabaseRequestParams params);
|
2015-09-09 14:15:05 +03:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async PBackgroundIDBTransaction(nsString[] objectStoreNames, Mode mode);
|
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
|
|
|
|
2019-03-15 20:10:29 +03:00
|
|
|
async VersionChange(uint64_t oldVersion, uint64_t? newVersion);
|
2014-09-27 03:21:57 +04:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async Invalidate();
|
2014-09-27 03:21:57 +04:00
|
|
|
|
2016-05-31 13:08:20 +03:00
|
|
|
async CloseAfterInvalidationComplete();
|
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async PBackgroundIDBVersionChangeTransaction(uint64_t currentVersion,
|
|
|
|
uint64_t requestedVersion,
|
|
|
|
int64_t nextObjectStoreId,
|
|
|
|
int64_t nextIndexId);
|
2015-09-09 14:15:05 +03:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async PBackgroundMutableFile(nsString name, nsString type);
|
2014-09-27 03:21:57 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace indexedDB
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|