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

Unified Diff: net/base/host_port_pair.h

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: get_canonical_name -> canonical_name. iterator to indexing Created 8 years, 7 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 | « net/base/address_list_unittest.cc ('k') | net/base/host_port_pair.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_port_pair.h
diff --git a/net/base/host_port_pair.h b/net/base/host_port_pair.h
index 1288a44340d921c2006ff16533fd337926fe0190..df22768fa66409751c2595d9e1891c581b0b340b 100644
--- a/net/base/host_port_pair.h
+++ b/net/base/host_port_pair.h
@@ -10,11 +10,12 @@
#include "base/basictypes.h"
#include "net/base/net_export.h"
-struct addrinfo;
class GURL;
namespace net {
+class IPEndPoint;
+
class NET_EXPORT HostPortPair {
public:
HostPortPair();
@@ -24,8 +25,8 @@ class NET_EXPORT HostPortPair {
// Creates a HostPortPair for the origin of |url|.
static HostPortPair FromURL(const GURL& url);
- // Creates a HostPortPair from an addrinfo struct.
- static HostPortPair FromAddrInfo(const struct addrinfo* ai);
+ // Creates a HostPortPair from an IPEndPoint.
+ static HostPortPair FromIPEndPoint(const IPEndPoint& ipe);
// Creates a HostPortPair from a string formatted in same manner as
// ToString().
« no previous file with comments | « net/base/address_list_unittest.cc ('k') | net/base/host_port_pair.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698