| Index: url/origin.h
|
| diff --git a/url/origin.h b/url/origin.h
|
| index 1c28588f311249478f70d01978b76e6f15ff2e18..4b838e420f3ffac5d280d70204030a6d9b84844c 100644
|
| --- a/url/origin.h
|
| +++ b/url/origin.h
|
| @@ -104,18 +104,13 @@ class URL_EXPORT Origin {
|
|
|
| // Creates an origin without sanity checking that the host is canonicalized.
|
| // This should only be used when converting between already normalized types,
|
| - // and should NOT be used for IPC.
|
| - static Origin CreateFromNormalizedTuple(base::StringPiece scheme,
|
| - base::StringPiece host,
|
| - uint16_t port);
|
| -
|
| - // Same as CreateFromNormalizedTuple() above, but adds a suborigin component
|
| - // as well.
|
| + // and should NOT be used for IPC. Method takes std::strings for use with move
|
| + // operators to avoid copies.
|
| static Origin CreateFromNormalizedTupleWithSuborigin(
|
| - base::StringPiece scheme,
|
| - base::StringPiece host,
|
| + std::string scheme,
|
| + std::string host,
|
| uint16_t port,
|
| - base::StringPiece suborigin);
|
| + std::string suborigin);
|
|
|
| ~Origin();
|
|
|
| @@ -173,6 +168,11 @@ class URL_EXPORT Origin {
|
| uint16_t port,
|
| base::StringPiece suborigin,
|
| SchemeHostPort::ConstructPolicy policy);
|
| + Origin(std::string scheme,
|
| + std::string host,
|
| + uint16_t port,
|
| + std::string suborigin,
|
| + SchemeHostPort::ConstructPolicy policy);
|
|
|
| SchemeHostPort tuple_;
|
| bool unique_;
|
|
|