/external/chromium/net/proxy/ |
H A D | proxy_server.cc | 18 // Parse the proxy type from a PAC string, to a ProxyServer::Scheme. 21 ProxyServer::Scheme GetSchemeFromPacType(std::string::const_iterator begin, 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_INVALID; 42 // ProxyServer::Scheme. This corresponds with the values used in 43 // ProxyServer [all...] |
H A D | proxy_server_unittest.cc | 9 // Test the creation of ProxyServer using ProxyServer::FromURI, which parses 16 net::ProxyServer::Scheme expected_scheme; 26 net::ProxyServer::SCHEME_HTTP, 35 net::ProxyServer::SCHEME_HTTP, 44 net::ProxyServer::SCHEME_HTTP, 55 net::ProxyServer::SCHEME_HTTP, 64 net::ProxyServer::SCHEME_HTTP, 73 net::ProxyServer::SCHEME_HTTP, 82 net::ProxyServer [all...] |
H A D | proxy_config_service_common_unittest.cc | 23 rules.single_proxy = ProxyServer::FromURI(single_proxy, 24 ProxyServer::SCHEME_HTTP); 25 rules.proxy_for_http = ProxyServer::FromURI(proxy_for_http, 26 ProxyServer::SCHEME_HTTP); 27 rules.proxy_for_https = ProxyServer::FromURI(proxy_for_https, 28 ProxyServer::SCHEME_HTTP); 29 rules.proxy_for_ftp = ProxyServer::FromURI(proxy_for_ftp, 30 ProxyServer::SCHEME_HTTP); 31 rules.socks_proxy = ProxyServer::FromURI(socks_proxy, 32 ProxyServer [all...] |
H A D | proxy_list.h | 26 void SetSingleProxyServer(const ProxyServer& proxy_server); 33 // |scheme_bit_field| is a bunch of ProxyServer::Scheme bitwise ORed together. 41 const ProxyServer& Get() const; 61 std::vector<ProxyServer> proxies_;
|
H A D | proxy_server.h | 18 // ProxyServer encodes the {type, host, port} of a proxy server. 19 // ProxyServer is immutable. 20 class ProxyServer { class in namespace:net 35 // Constructs an invalid ProxyServer. 36 ProxyServer() : scheme_(SCHEME_INVALID), port_(-1) {} function in class:net::ProxyServer 40 ProxyServer(Scheme scheme, const std::string& host, int port) function in class:net::ProxyServer 48 // Returns true if this ProxyServer is actually just a DIRECT connection. 51 // Returns true if this ProxyServer is an HTTP proxy. 54 // Returns true if this ProxyServer is a SOCKS proxy. 86 static ProxyServer FromUR [all...] |
H A D | proxy_server_mac.cc | 18 ProxyServer ProxyServer::FromDictionary(Scheme scheme, 24 return ProxyServer(scheme, std::string(), -1); 34 return ProxyServer(); // Invalid. 48 return ProxyServer(scheme, host, port);
|
H A D | proxy_config.h | 76 const ProxyServer* MapUrlSchemeToProxy(const std::string& url_scheme) const; 90 ProxyServer single_proxy; 93 ProxyServer proxy_for_http; 94 ProxyServer proxy_for_https; 95 ProxyServer proxy_for_ftp; 98 ProxyServer socks_proxy; 103 ProxyServer* MapSchemeToProxy(const std::string& scheme);
|
H A D | proxy_config_service_mac.cc | 75 ProxyServer proxy_server = 76 ProxyServer::FromDictionary(ProxyServer::SCHEME_HTTP, 88 ProxyServer proxy_server = 89 ProxyServer::FromDictionary(ProxyServer::SCHEME_HTTP, 101 ProxyServer proxy_server = 102 ProxyServer::FromDictionary(ProxyServer::SCHEME_HTTP, 114 ProxyServer proxy_serve [all...] |
H A D | proxy_info.cc | 17 proxy_list_.SetSingleProxyServer(ProxyServer::Direct()); 24 void ProxyInfo::UseProxyServer(const ProxyServer& proxy_server) {
|
H A D | proxy_list.cc | 20 ProxyServer uri = ProxyServer::FromURI( 21 str_tok.token_begin(), str_tok.token_end(), ProxyServer::SCHEME_HTTP); 28 void ProxyList::SetSingleProxyServer(const ProxyServer& proxy_server) { 39 std::vector<ProxyServer> good_proxies; 40 std::vector<ProxyServer> bad_proxies; 42 std::vector<ProxyServer>::const_iterator iter = proxies_.begin(); 63 for (std::vector<ProxyServer>::iterator it = proxies_.begin(); 77 const ProxyServer& ProxyList::Get() const { 84 std::vector<ProxyServer> [all...] |
H A D | proxy_config.cc | 35 single_proxy = ProxyServer(); 36 proxy_for_http = ProxyServer(); 37 proxy_for_https = ProxyServer(); 38 proxy_for_ftp = ProxyServer(); 39 socks_proxy = ProxyServer(); 55 single_proxy = ProxyServer::FromURI(url_scheme, 56 ProxyServer::SCHEME_HTTP); 66 if (ProxyServer* entry = MapSchemeToProxy(url_scheme)) { 68 ProxyServer::Scheme scheme = (entry == &socks_proxy) ? 69 ProxyServer [all...] |
H A D | proxy_resolver_mac.cc | 20 // Utility function to map a CFProxyType to a ProxyServer::Scheme. 21 // If the type is unknown, returns ProxyServer::SCHEME_INVALID. 22 net::ProxyServer::Scheme GetProxyServerScheme(CFStringRef proxy_type) { 24 return net::ProxyServer::SCHEME_DIRECT; 26 return net::ProxyServer::SCHEME_HTTP; 30 return net::ProxyServer::SCHEME_SOCKS5; 32 return net::ProxyServer::SCHEME_INVALID; 152 ProxyServer proxy_server = ProxyServer::FromDictionary(
|
H A D | proxy_info.h | 38 void UseProxyServer(const ProxyServer& proxy_server); 60 ProxyServer proxy_server() const { return proxy_list_.Get(); }
|
H A D | proxy_list_unittest.cc | 72 ProxyServer::SCHEME_DIRECT | ProxyServer::SCHEME_HTTP, 77 ProxyServer::SCHEME_DIRECT | ProxyServer::SCHEME_SOCKS4,
|
H A D | proxy_config_service_linux.h | 150 ProxyServer::Scheme scheme, 151 ProxyServer* result_server); 153 bool GetProxyFromEnvVar(const char* variable, ProxyServer* result_server); 162 ProxyServer* result_server);
|
H A D | proxy_config_unittest.cc | 15 const ProxyServer& proxy_server) { 56 ProxyServer::FromURI("myproxy:80", ProxyServer::SCHEME_HTTP); 63 ProxyServer::FromURI("myproxy:100", ProxyServer::SCHEME_HTTP); 69 ProxyServer::FromURI("myproxy", ProxyServer::SCHEME_HTTP);
|
H A D | proxy_config_service_linux.cc | 39 std::string FixupProxyHostScheme(ProxyServer::Scheme scheme, 41 if (scheme == ProxyServer::SCHEME_SOCKS4 && 45 scheme = ProxyServer::SCHEME_SOCKS5; 62 // ProxyServer. This also allows ProxyServer to choose the right 64 if (scheme == ProxyServer::SCHEME_SOCKS4) 66 else if (scheme == ProxyServer::SCHEME_SOCKS5) 78 const char* variable, ProxyServer::Scheme scheme, 79 ProxyServer* result_server) { 84 ProxyServer proxy_serve [all...] |
H A D | proxy_service.cc | 347 const ProxyServer* entry = proxy_rules.MapUrlSchemeToProxy(url.scheme());
|
/external/chromium/net/http/ |
H A D | http_network_transaction.cc | 591 ProxyServer::SCHEME_DIRECT | ProxyServer::SCHEME_HTTP | 592 ProxyServer::SCHEME_SOCKS4 | ProxyServer::SCHEME_SOCKS5); 653 ProxyServer proxy_server = proxy_info_.proxy_server(); 757 if (proxy_info_.proxy_server().scheme() == ProxyServer::SCHEME_SOCKS5)
|
/external/chromium/net/socket_stream/ |
H A D | socket_stream.cc | 473 ProxyServer proxy_server = proxy_info_.proxy_server(); 710 if (proxy_info_.proxy_server().scheme() == ProxyServer::SCHEME_SOCKS5)
|