mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
74 lines
1.2 KiB
Plaintext
74 lines
1.2 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;
|
|
};
|
|
|
|
struct CompleteResult
|
|
{ };
|
|
|
|
struct AbortResult
|
|
{
|
|
nsresult errorCode;
|
|
};
|
|
|
|
union CompleteParams
|
|
{
|
|
CompleteResult;
|
|
AbortResult;
|
|
};
|
|
|
|
} // namespace ipc
|
|
|
|
protocol PIndexedDBTransaction
|
|
{
|
|
manager PIndexedDBDatabase;
|
|
|
|
manages PIndexedDBObjectStore;
|
|
|
|
parent:
|
|
__delete__();
|
|
|
|
PIndexedDBObjectStore(ObjectStoreConstructorParams params);
|
|
|
|
Abort(nsresult abortCode);
|
|
|
|
AllRequestsFinished();
|
|
|
|
DeleteObjectStore(nsString name);
|
|
|
|
child:
|
|
Complete(CompleteParams params);
|
|
};
|
|
|
|
} // namespace indexedDB
|
|
} // namespace dom
|
|
} // namespace mozilla
|