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

Unified Diff: net/base/host_port_pair.h

Issue 1151843002: DO NOT LAND Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More. Created 5 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
Index: net/base/host_port_pair.h
diff --git a/net/base/host_port_pair.h b/net/base/host_port_pair.h
index a4e5761bcccfe72d2cd3e5c2044352f961ff8939..81614ec9d26de61d569a42a2ec4f733cc0106644 100644
--- a/net/base/host_port_pair.h
+++ b/net/base/host_port_pair.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
#include "net/base/net_export.h"
+#include "url/origin.h"
class GURL;
@@ -31,6 +32,9 @@ class NET_EXPORT HostPortPair {
// ToString().
static HostPortPair FromString(const std::string& str);
+ // Creates a HostPortPair from an Origin.
+ static HostPortPair FromOrigin(const url::Origin& origin);
+
// 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