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

Unified Diff: net/base/ip_endpoint.h

Issue 1540413002: net: add a ctor to IPEndPoint that takes an IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « no previous file | net/base/ip_endpoint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ip_endpoint.h
diff --git a/net/base/ip_endpoint.h b/net/base/ip_endpoint.h
index 575040f2a30c6f42400eaf53cad76993086ec016..07ef3841d1e7303ca67e5289324dff32d68b29c3 100644
--- a/net/base/ip_endpoint.h
+++ b/net/base/ip_endpoint.h
@@ -19,6 +19,8 @@ struct sockaddr;
namespace net {
+class IPAddress;
+
// An IPEndPoint represents the address of a transport endpoint:
// * IP address (either v4 or v6)
// * Port
@@ -26,7 +28,9 @@ class NET_EXPORT IPEndPoint {
public:
IPEndPoint();
~IPEndPoint();
+ // DEPRECATED(crbug.com/496258): Use the ctor that takes IPAddress instead.
IPEndPoint(const IPAddressNumber& address, uint16_t port);
+ IPEndPoint(const IPAddress& address, uint16_t port);
IPEndPoint(const IPEndPoint& endpoint);
const IPAddressNumber& address() const { return address_; }
« no previous file with comments | « no previous file | net/base/ip_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698