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

Unified Diff: net/base/ip_endpoint.h

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback eroman Created 4 years, 11 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/base/ip_endpoint.h
diff --git a/net/base/ip_endpoint.h b/net/base/ip_endpoint.h
index 07ef3841d1e7303ca67e5289324dff32d68b29c3..34b378bdda365d1b16c9ba08743d36ae908f8f07 100644
--- a/net/base/ip_endpoint.h
+++ b/net/base/ip_endpoint.h
@@ -11,7 +11,7 @@
#include "base/compiler_specific.h"
#include "net/base/address_family.h"
-#include "net/base/ip_address_number.h"
+#include "net/base/ip_address.h"
#include "net/base/net_export.h"
#include "net/base/sys_addrinfo.h"
@@ -19,8 +19,6 @@ struct sockaddr;
namespace net {
-class IPAddress;
-
// An IPEndPoint represents the address of a transport endpoint:
// * IP address (either v4 or v6)
// * Port
@@ -33,7 +31,7 @@ class NET_EXPORT IPEndPoint {
IPEndPoint(const IPAddress& address, uint16_t port);
IPEndPoint(const IPEndPoint& endpoint);
- const IPAddressNumber& address() const { return address_; }
+ const IPAddress& address() const { return address_; }
uint16_t port() const { return port_; }
// Returns AddressFamily of the address.
@@ -70,7 +68,7 @@ class NET_EXPORT IPEndPoint {
bool operator==(const IPEndPoint& that) const;
private:
- IPAddressNumber address_;
+ IPAddress address_;
uint16_t port_;
};

Powered by Google App Engine
This is Rietveld 408576698