tor-browser

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

PCacheStreamControl.ipdl (1026B)


      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 PBoundStorageKey;
      7 include IPCStream;
      8 
      9 using struct nsID from "nsID.h";
     10 
     11 namespace mozilla {
     12 namespace dom {
     13 namespace cache {
     14 
     15 protocol PCacheStreamControl
     16 {
     17   // PBoundStorageKey is a new top-level actor and is exclusively used
     18   // for loading cached service worker scripts Off-main thread. However,
     19   // it would be ideal to use it for all cache/storage related messages,
     20   // look at https://bugzilla.mozilla.org/show_bug.cgi?id=1853726 and
     21   // https://bugzilla.mozilla.org/show_bug.cgi?id=1853706
     22 
     23   manager PBackground or PBoundStorageKey;
     24 
     25 parent:
     26   async OpenStream(nsID aStreamId) returns(IPCStream? aStream);
     27   async NoteClosed(nsID aStreamId);
     28 
     29 child:
     30   async CloseAll();
     31   async __delete__();
     32 };
     33 
     34 } // namespace cache
     35 } // namespace dom
     36 } // namespace mozilla