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 : */
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/. */
8 include protocol PNecko;
9 include protocol PSocketProcess;
11 include PDNSRequestParams;
13 include "mozilla/net/NeckoMessageUtils.h";
15 using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
16 using nsIDNSService::DNSFlags from "nsIDNSService.h";
21 async protocol PDNSRequest
23 manager PNecko or PSocketProcess;
26 // constructor in PNecko takes AsyncResolve args that initialize request
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);
35 async LookupCompleted(DNSRequestResponse reply);