2013-12-11 23:03:51 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
|
|
|
|
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
include protocol PNecko;
|
2019-08-05 23:54:01 +03:00
|
|
|
include protocol PSocketProcess;
|
2013-12-11 23:03:51 +04:00
|
|
|
|
|
|
|
include PDNSRequestParams;
|
|
|
|
|
|
|
|
include "mozilla/net/NeckoMessageUtils.h";
|
|
|
|
|
2017-02-15 06:53:37 +03:00
|
|
|
using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
|
|
|
|
|
2013-12-11 23:03:51 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
2019-12-02 21:28:49 +03:00
|
|
|
async refcounted protocol PDNSRequest
|
2013-12-11 23:03:51 +04:00
|
|
|
{
|
2019-08-05 23:54:01 +03:00
|
|
|
manager PNecko or PSocketProcess;
|
2013-12-11 23:03:51 +04:00
|
|
|
|
2020-04-14 12:14:41 +03:00
|
|
|
both:
|
2013-12-11 23:03:51 +04:00
|
|
|
// constructor in PNecko takes AsyncResolve args that initialize request
|
|
|
|
|
2014-08-26 13:09:00 +04:00
|
|
|
// Pass args here rather than storing them in the parent; they are only
|
|
|
|
// needed if the request is to be canceled.
|
2020-02-04 22:35:34 +03:00
|
|
|
async CancelDNSRequest(nsCString hostName, nsCString trrServer,
|
|
|
|
uint16_t type, OriginAttributes originAttributes,
|
2018-05-16 23:05:03 +03:00
|
|
|
uint32_t flags, nsresult reason);
|
2016-01-27 00:51:53 +03:00
|
|
|
async __delete__();
|
2013-12-11 23:03:51 +04:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async LookupCompleted(DNSRequestResponse reply);
|
2013-12-11 23:03:51 +04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} //namespace net
|
|
|
|
} //namespace mozilla
|