gecko/dom/indexedDB/ipc/PIndexedDBTransaction.ipdl

60 lines
1.1 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 PIndexedDBDatabase;
include protocol PIndexedDBObjectStore;
include "mozilla/dom/indexedDB/SerializationHelpers.h";
using mozilla::dom::indexedDB::ObjectStoreInfoGuts;
namespace mozilla {
namespace dom {
namespace indexedDB {
namespace ipc {
struct CreateObjectStoreParams
{
ObjectStoreInfoGuts info;
};
struct GetObjectStoreParams
{
nsString name;
};
union ObjectStoreConstructorParams
{
CreateObjectStoreParams;
GetObjectStoreParams;
};
} // namespace ipc
protocol PIndexedDBTransaction
{
manager PIndexedDBDatabase;
manages PIndexedDBObjectStore;
parent:
__delete__();
PIndexedDBObjectStore(ObjectStoreConstructorParams params);
Abort(nsresult abortCode);
AllRequestsFinished();
DeleteObjectStore(nsString name);
child:
Complete(nsresult rv);
};
} // namespace indexedDB
} // namespace dom
} // namespace mozilla