tor-browser

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

PDNSRequest.ipdl (1224B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
      3 
      4 /* This Source Code Form is subject to the terms of the Mozilla Public
      5  * License, v. 2.0. If a copy of the MPL was not distributed with this
      6  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      7 
      8 include protocol PNecko;
      9 include protocol PSocketProcess;
     10 
     11 include PDNSRequestParams;
     12 
     13 include "mozilla/net/NeckoMessageUtils.h";
     14 
     15 using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
     16 using nsIDNSService::DNSFlags from "nsIDNSService.h";
     17 
     18 namespace mozilla {
     19 namespace net {
     20 
     21 async protocol PDNSRequest
     22 {
     23   manager PNecko or PSocketProcess;
     24 
     25 both:
     26   // constructor in PNecko takes AsyncResolve args that initialize request
     27 
     28   // Pass args here rather than storing them in the parent; they are only
     29   // needed if the request is to be canceled.
     30   async CancelDNSRequest(nsCString hostName, nsCString trrServer, int32_t port,
     31                          uint16_t type, OriginAttributes originAttributes,
     32                          DNSFlags flags, nsresult reason);
     33   async __delete__();
     34 
     35   async LookupCompleted(DNSRequestResponse reply);
     36 
     37 };
     38 
     39 } //namespace net
     40 } //namespace mozilla