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

Unified Diff: net/dns/host_resolver.h

Issue 384503005: Merge 280230 "Flag myIpAddress requests for chromeos" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2062/src/
Patch Set: Created 6 years, 5 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
« no previous file with comments | « chromeos/network/host_resolver_impl_chromeos_unittest.cc ('k') | net/dns/host_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_resolver.h
===================================================================
--- net/dns/host_resolver.h (revision 282214)
+++ net/dns/host_resolver.h (working copy)
@@ -88,6 +88,9 @@
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 @@
// 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.
« no previous file with comments | « chromeos/network/host_resolver_impl_chromeos_unittest.cc ('k') | net/dns/host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698