tor-browser

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

PBackgroundSDBConnection.ipdl (1047B)


      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 PBackground;
      6 include protocol PBackgroundSDBRequest;
      7 
      8 namespace mozilla {
      9 namespace dom {
     10 
     11 struct SDBRequestOpenParams
     12 {
     13   nsString name;
     14 };
     15 
     16 struct SDBRequestSeekParams
     17 {
     18   uint64_t offset;
     19 };
     20 
     21 struct SDBRequestReadParams
     22 {
     23   uint64_t size;
     24 };
     25 
     26 struct SDBRequestWriteParams
     27 {
     28   nsCString data;
     29 };
     30 
     31 struct SDBRequestCloseParams
     32 {
     33 };
     34 
     35 union SDBRequestParams
     36 {
     37   SDBRequestOpenParams;
     38   SDBRequestSeekParams;
     39   SDBRequestReadParams;
     40   SDBRequestWriteParams;
     41   SDBRequestCloseParams;
     42 };
     43 
     44 [ChildImpl=virtual, ParentImpl=virtual]
     45 protocol PBackgroundSDBConnection
     46 {
     47   manager PBackground;
     48 
     49   manages PBackgroundSDBRequest;
     50 
     51 parent:
     52   async DeleteMe();
     53 
     54   async PBackgroundSDBRequest(SDBRequestParams params);
     55 
     56 child:
     57   async __delete__();
     58 
     59   async AllowToClose();
     60 
     61   async Closed();
     62 };
     63 
     64 } // namespace dom
     65 } // namespace mozilla