tor-browser

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

PDNSRequestParams.ipdlh (1160B)


      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 using mozilla::net::NetAddr from "mozilla/net/DNS.h";
      9 using mozilla::net::IPCTypeRecord from "mozilla/net/DNSByTypeRecord.h";
     10 using nsIRequest::TRRMode from "nsIRequest.h";
     11 using class mozilla::TimeStamp from "mozilla/TimeStamp.h";
     12 
     13 namespace mozilla {
     14 namespace net {
     15 
     16 //-----------------------------------------------------------------------------
     17 // DNS IPDL structs
     18 //-----------------------------------------------------------------------------
     19 
     20 struct DNSRecord
     21 {
     22   nsCString canonicalName;
     23   NetAddr[] addrs;
     24   double trrFetchDuration;
     25   double trrFetchDurationNetworkOnly;
     26   bool isTRR;
     27   TRRMode effectiveTRRMode;
     28   uint32_t ttl;
     29   TimeStamp lastUpdate;
     30 };
     31 
     32 union DNSRequestResponse
     33 {
     34   DNSRecord;
     35   IPCTypeRecord; // The result of a by-type query
     36   nsresult;   // if error
     37 };
     38 
     39 
     40 } // namespace ipc
     41 } // namespace mozilla