Index: net/base/ip_endpoint.h |
diff --git a/net/base/ip_endpoint.h b/net/base/ip_endpoint.h |
index 784ee031ed149dc1a7861f22d80f16afba2195e1..1f8b0c83e0e65fd9d6d23cdbaed2d20a2a159c17 100644 |
--- a/net/base/ip_endpoint.h |
+++ b/net/base/ip_endpoint.h |
@@ -10,6 +10,7 @@ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
#include "net/base/address_family.h" |
+#include "net/base/ip_address.h" |
#include "net/base/ip_address_number.h" |
#include "net/base/net_export.h" |
#include "net/base/sys_addrinfo.h" |
@@ -26,9 +27,13 @@ class NET_EXPORT IPEndPoint { |
IPEndPoint(); |
~IPEndPoint(); |
IPEndPoint(const IPAddressNumber& address, uint16_t port); |
+ IPEndPoint(const IPAddress& address, uint16_t port); |
IPEndPoint(const IPEndPoint& endpoint); |
- const IPAddressNumber& address() const { return address_; } |
+ // TODO(Martijnc): Remove the old version when all consumers are moved to |
+ // IPAddress. https://crbug.com/496258 |
+ const IPAddressNumber& address() const { return address_.ip_address_; } |
+ const IPAddress& addressNew() const { return address_; } |
uint16_t port() const { return port_; } |
// Returns AddressFamily of the address. |
@@ -65,7 +70,7 @@ class NET_EXPORT IPEndPoint { |
bool operator==(const IPEndPoint& that) const; |
private: |
- IPAddressNumber address_; |
+ IPAddress address_; |
uint16_t port_; |
}; |