tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PBackgroundIDBVersionChangeTransaction.ipdl (1521B)


      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/. */
      4 
      5 include protocol PBackgroundIDBCursor;
      6 include protocol PBackgroundIDBDatabase;
      7 include protocol PBackgroundIDBDatabaseFile;
      8 include protocol PBackgroundIDBRequest;
      9 
     10 include PBackgroundIDBSharedTypes;
     11 
     12 include "mozilla/dom/indexedDB/ActorsChild.h";
     13 
     14 namespace mozilla {
     15 namespace dom {
     16 namespace indexedDB {
     17 
     18 [ChildImpl="indexedDB::BackgroundVersionChangeTransactionChild", ParentImpl=virtual]
     19 protocol PBackgroundIDBVersionChangeTransaction {
     20   manager PBackgroundIDBDatabase;
     21 
     22   manages PBackgroundIDBCursor;
     23   manages PBackgroundIDBRequest;
     24 
     25 parent:
     26   async DeleteMe();
     27 
     28   async Commit(int64_t? lastRequest);
     29   async Abort(nsresult resultCode);
     30 
     31   async CreateObjectStore(ObjectStoreMetadata metadata);
     32   async DeleteObjectStore(int64_t objectStoreId);
     33   async RenameObjectStore(int64_t objectStoreId, nsString name);
     34 
     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);
     38 
     39   async PBackgroundIDBCursor(int64_t requestId, OpenCursorParams params);
     40 
     41   async PBackgroundIDBRequest(int64_t requestId, RequestParams params);
     42 
     43 child:
     44   async __delete__();
     45 
     46   async Complete(nsresult result);
     47 };
     48 
     49 }  // namespace indexedDB
     50 }  // namespace dom
     51 }  // namespace mozilla