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

Unified Diff: net/dns/host_resolver.h

Issue 718273002: Use uint16 for port numbers, net/ edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment Created 6 years, 1 month 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 2823c4ba651bbb0f025ba8725867e1d97783ac01..ed938e603611cb0b0e90cc8921d2a241a7411805 100644
--- a/net/dns/host_resolver.h
+++ b/net/dns/host_resolver.h
@@ -67,7 +67,7 @@ class NET_EXPORT HostResolver {
host_port_pair_ = host_port_pair;
}
- int port() const { return host_port_pair_.port(); }
+ uint16 port() const { return host_port_pair_.port(); }
mmenke 2014/11/18 21:06:39 should include basictypes.h
Peter Kasting 2014/11/18 23:38:42 Done.
const std::string& hostname() const { return host_port_pair_.host(); }
AddressFamily address_family() const { return address_family_; }

Powered by Google App Engine
This is Rietveld 408576698