tor-browser

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

PFetch.ipdl (1460B)


      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
      3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 include protocol PBackground;
      6 
      7 include ClientIPCTypes;
      8 include FetchTypes;
      9 include IPCServiceWorkerDescriptor;
     10 include NeckoChannelParams;
     11 include PBackgroundSharedTypes;
     12 include PerformanceTimingTypes;
     13 
     14 namespace mozilla {
     15 namespace dom {
     16 
     17 struct FetchOpArgs{
     18   IPCInternalRequest request;
     19   PrincipalInfo principalInfo;
     20   nsCString workerScript;
     21   IPCClientInfo clientInfo;
     22   IPCServiceWorkerDescriptor? controller;
     23   CookieJarSettingsArgs? cookieJarSettings;
     24   bool needOnDataAvailable;
     25   bool hasCSPEventListener;
     26   uint64_t associatedBrowsingContextID;
     27   bool isThirdPartyContext;
     28   bool isWorkerRequest;
     29   bool isOn3PCBExceptionList;
     30 };
     31 
     32 protocol PFetch {
     33   manager PBackground;
     34 
     35   parent:
     36     async FetchOp(FetchOpArgs aArgs);
     37 
     38     async AbortFetchOp(bool aForceAbort);
     39 
     40   child:
     41     async OnResponseAvailableInternal(ParentToChildInternalResponse aResponse);
     42 
     43     async OnResponseEnd(ResponseEndArgs aResponseEndArgs);
     44 
     45     async OnDataAvailable();
     46 
     47     async OnFlushConsoleReport(ConsoleReportCollected[] aReports);
     48 
     49     async OnCSPViolationEvent(nsString aJSON);
     50 
     51     async OnReportPerformanceTiming(ResponseTiming aTiming);
     52 
     53     async OnNotifyNetworkMonitorAlternateStack(uint64_t aChannelID);
     54 
     55     async __delete__(nsresult aResult);
     56 };
     57 
     58 }
     59 }