1 #ifndef IPFS_DNS_TXT_REQUEST_H_
2 #define IPFS_DNS_TXT_REQUEST_H_
4 #include "virtual_optional.h"
6 #include <ipfs_client/client.h>
8 #include <mojo/public/cpp/bindings/receiver.h>
9 #include <services/network/public/cpp/resolve_host_client_base.h>
11 namespace network::mojom {
19 using DnsTextCompleteCallback = ctx::DnsTxtLookup::DnsTextCompleteCallback;
22 DnsTextResultsCallback results_callback_;
23 DnsTextCompleteCallback completion_callback_;
24 mojo::Receiver<network::mojom::ResolveHostClient> recv_{
this};
26 using Endpoints = std::vector<::net::HostResolverEndpointResult>;
27 void OnTextResults(std::vector<std::string>
const&)
override;
28 void OnComplete(int32_t result,
29 ::net::ResolveErrorInfo
const&,
30 VirtualOptional<::net::AddressList>
const&,
31 VirtualOptional<Endpoints>
const&)
override;
35 DnsTextResultsCallback,
36 DnsTextCompleteCallback,
37 network::mojom::NetworkContext*);
Definition: dns_txt_request.h:16
std::function< void(std::vector< std::string > const &)> DnsTextResultsCallback
Definition: dns_txt_lookup.h:16