Chromium Code Reviews| Index: net/base/url_util.h |
| diff --git a/net/base/url_util.h b/net/base/url_util.h |
| index 362be873c11cd4b01936280c7b097e724b432fb5..ed4ee7d7c97b48342699d1edcf00c7ce047a7bb2 100644 |
| --- a/net/base/url_util.h |
| +++ b/net/base/url_util.h |
| @@ -77,6 +77,17 @@ NET_EXPORT bool GetValueForKeyInQuery(const GURL& url, |
| const std::string& search_key, |
| std::string* out_value); |
| +// Returns a new GURL which is same to |url| except that unsafe characters in a |
| +// name and a value of each of query parameters are escaped like %XX%XX. |
|
Ryan Sleevi
2014/10/09 21:11:04
Grammatically, this is not valid.
"Returns a new
|
| +// |
| +// Examples: |
| +// |
| +// EscapeQueryParameters(GURL("http://example.com/test?q=a|b|c")).spec() |
| +// => "http://example.com/test?q=a%7Cb%7Cc" |
| +// EscapeQueryParameters(GURL("http://example.com/test?q=a|b&q2=1|2")).spec() |
| +// => "http://example.com/test?q=a%7Cb&q2=1%7C2" |
| +NET_EXPORT GURL EscapeQueryParameters(const GURL& url); |
| + |
| } // namespace net |
| #endif // NET_BASE_URL_UTIL_H_ |