| 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 {
|
|
|