Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1572)

Unified Diff: net/dns/single_request_host_resolver.h

Issue 2004453002: Add a Dns preresolve interface in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@predictor_dns_browsertest
Patch Set: Fix error with base::Passed Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/dns/single_request_host_resolver.h
diff --git a/net/dns/single_request_host_resolver.h b/net/dns/single_request_host_resolver.h
index f2843093fc8ec1ba761cdd67938184180774b8e4..06f9fe2c5877f496a87e945ec44a01cae748f606 100644
--- a/net/dns/single_request_host_resolver.h
+++ b/net/dns/single_request_host_resolver.h
@@ -31,6 +31,8 @@ class NET_EXPORT SingleRequestHostResolver {
// Resolves the given hostname (or IP address literal), filling out the
// |addresses| object upon success. See HostResolver::Resolve() for details.
+ // Note, |addresses| can be null if the caller does not care about the return
+ // resolution result, and only wishes to perform the resolution.
int Resolve(const HostResolver::RequestInfo& info,
RequestPriority priority,
AddressList* addresses,
@@ -56,6 +58,8 @@ class NET_EXPORT SingleRequestHostResolver {
// Completion callback for when request to |resolver_| completes.
CompletionCallback callback_;
+ std::unique_ptr<AddressList> default_addresses_;
+
DISALLOW_COPY_AND_ASSIGN(SingleRequestHostResolver);
};

Powered by Google App Engine
This is Rietveld 408576698