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

Unified Diff: net/base/host_port_pair.h

Issue 6488010: Propagate the remote socket address to URLRequest and to ViewHostMsg_FrameNavigate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address eroman's comments Created 9 years, 10 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/host_port_pair.h
diff --git a/net/base/host_port_pair.h b/net/base/host_port_pair.h
index 2c7bb9ff9cd24ddbcd601eeb8465701b1f57c3df..7488e6c53c0c026665e7e6e8ab21cf5640481ea5 100644
--- a/net/base/host_port_pair.h
+++ b/net/base/host_port_pair.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/basictypes.h"
+struct addrinfo;
class GURL;
namespace net {
@@ -22,6 +23,9 @@ class 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);
+
// TODO(willchan): Define a functor instead.
// Comparator function so this can be placed in a std::map.
bool operator<(const HostPortPair& other) const {

Powered by Google App Engine
This is Rietveld 408576698