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

Unified Diff: net/dns/host_resolver.h

Issue 355953002: Flag myIpAddress requests for chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 6 years, 6 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/host_resolver.h
diff --git a/net/dns/host_resolver.h b/net/dns/host_resolver.h
index 5216329548c6b9d82cd5ae5c3f3b98eedde00a5d..5b3b3c7a7c668263b6f12adf448f1b25926985b2 100644
--- a/net/dns/host_resolver.h
+++ b/net/dns/host_resolver.h
@@ -88,6 +88,9 @@ class NET_EXPORT HostResolver {
bool is_speculative() const { return is_speculative_; }
void set_is_speculative(bool b) { is_speculative_ = b; }
+ bool is_my_ip_address() const { return is_my_ip_address_; }
+ void set_is_my_ip_address(bool b) { is_my_ip_address_ = b; }
+
private:
// The hostname to resolve, and the port to use in resulting sockaddrs.
HostPortPair host_port_pair_;
@@ -103,6 +106,10 @@ class NET_EXPORT HostResolver {
// Whether this request was started by the DNS prefetcher.
bool is_speculative_;
+
+ // Indicates a request for myIpAddress (to differentiate from other requests
+ // for localhost, currently used by Chrome OS).
+ bool is_my_ip_address_;
};
// Opaque type used to cancel a request.

Powered by Google App Engine
This is Rietveld 408576698