Home | History | Annotate | Download | only in proxy

Lines Matching refs:ProxyServer

17 // Parses the proxy type from a PAC string, to a ProxyServer::Scheme.
20 ProxyServer::Scheme GetSchemeFromPacTypeInternal(
24 return ProxyServer::SCHEME_HTTP;
29 return ProxyServer::SCHEME_SOCKS4;
32 return ProxyServer::SCHEME_SOCKS4;
34 return ProxyServer::SCHEME_SOCKS5;
36 return ProxyServer::SCHEME_DIRECT;
38 return ProxyServer::SCHEME_HTTPS;
40 return ProxyServer::SCHEME_INVALID;
44 // ProxyServer::Scheme. This corresponds with the values used in
45 // ProxyServer::ToURI(). If no type could be matched, returns SCHEME_INVALID.
46 ProxyServer::Scheme GetSchemeFromURIInternal(std::string::const_iterator begin,
49 return ProxyServer::SCHEME_HTTP;
51 return ProxyServer::SCHEME_SOCKS4;
53 return ProxyServer::SCHEME_SOCKS5;
55 return ProxyServer::SCHEME_SOCKS5;
57 return ProxyServer::SCHEME_DIRECT;
59 return ProxyServer::SCHEME_HTTPS;
60 return ProxyServer::SCHEME_INVALID;
73 ProxyServer::ProxyServer(Scheme scheme, const HostPortPair& host_port_pair)
84 const HostPortPair& ProxyServer::host_port_pair() const {
92 ProxyServer ProxyServer::FromURI(const std::string& uri,
98 ProxyServer ProxyServer::FromURI(std::string::const_iterator begin,
121 std::string ProxyServer::ToURI() const {
142 ProxyServer ProxyServer::FromPacString(const std::string& pac_string) {
147 ProxyServer ProxyServer::FromPacString(std::string::const_iterator begin,
171 std::string ProxyServer::ToPacString() const {
192 int ProxyServer::GetDefaultPortForScheme(Scheme scheme) {
207 ProxyServer::Scheme ProxyServer::GetSchemeFromURI(const std::string& scheme) {
213 bool ProxyServer::isDataReductionProxy() const {
218 bool ProxyServer::isDataReductionProxyFallback() const {
228 ProxyServer ProxyServer::FromSchemeHostAndPort(
237 return ProxyServer(); // Invalid -- DIRECT cannot have a host/port.
247 return ProxyServer(); // Invalid -- failed parsing <host>[":"<port>]
256 return ProxyServer(scheme, host_port_pair);