1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include protocol PBackgroundIDBCursor;
6 include protocol PBackgroundIDBDatabase;
7 include protocol PBackgroundIDBDatabaseFile;
8 include protocol PBackgroundIDBRequest;
10 include PBackgroundIDBSharedTypes;
12 include "mozilla/dom/indexedDB/ActorsChild.h";
18 [ChildImpl="indexedDB::BackgroundVersionChangeTransactionChild", ParentImpl=virtual]
19 protocol PBackgroundIDBVersionChangeTransaction {
20 manager PBackgroundIDBDatabase;
22 manages PBackgroundIDBCursor;
23 manages PBackgroundIDBRequest;
28 async Commit(int64_t? lastRequest);
29 async Abort(nsresult resultCode);
31 async CreateObjectStore(ObjectStoreMetadata metadata);
32 async DeleteObjectStore(int64_t objectStoreId);
33 async RenameObjectStore(int64_t objectStoreId, nsString name);
35 async CreateIndex(int64_t objectStoreId, IndexMetadata metadata);
36 async DeleteIndex(int64_t objectStoreId, int64_t indexId);
37 async RenameIndex(int64_t objectStoreId, int64_t indexId, nsString name);
39 async PBackgroundIDBCursor(int64_t requestId, OpenCursorParams params);
41 async PBackgroundIDBRequest(int64_t requestId, RequestParams params);
46 async Complete(nsresult result);
49 } // namespace indexedDB
51 } // namespace mozilla