Chromium Code Reviews| Index: net/proxy/proxy_server.h |
| diff --git a/net/proxy/proxy_server.h b/net/proxy/proxy_server.h |
| index 3786ddbe0a755f5790f53920a5437fd9a9f34e2c..7ac55927210637779897c50d5b5f532c60741bfd 100644 |
| --- a/net/proxy/proxy_server.h |
| +++ b/net/proxy/proxy_server.h |
| @@ -128,6 +128,12 @@ class ProxyServer { |
| // scheme. Returns -1 if unknown. |
| static int GetDefaultPortForScheme(Scheme scheme); |
| + // Parse the proxy scheme from a URL-like representation, to a |
|
eroman
2011/02/09 05:12:46
nit: please use passive tense, as in "Parses"
battre
2011/02/09 10:04:38
Done.
|
| + // ProxyServer::Scheme. This corresponds with the values used in |
| + // ProxyServer::ToURI(). If no type could be matched, returns SCHEME_INVALID. |
| + // |scheme| can be one from http, https, socks, socks4, socks5, direct. |
|
eroman
2011/02/09 05:12:46
nit: "from" ---> "of"
battre
2011/02/09 10:04:38
Done.
|
| + static Scheme GetSchemeFromURI(const std::string& scheme); |
| + |
| bool operator==(const ProxyServer& other) const { |
| return scheme_ == other.scheme_ && |
| host_port_pair_.Equals(other.host_port_pair_); |