Home | History | Annotate | Download | only in proxy

Lines Matching refs:ProxyServer

18 // Parses the proxy type from a PAC string, to a ProxyServer::Scheme.
21 ProxyServer::Scheme GetSchemeFromPacTypeInternal(
25 return ProxyServer::SCHEME_HTTP;
30 return ProxyServer::SCHEME_SOCKS4;
33 return ProxyServer::SCHEME_SOCKS4;
35 return ProxyServer::SCHEME_SOCKS5;
37 return ProxyServer::SCHEME_DIRECT;
39 return ProxyServer::SCHEME_HTTPS;
41 return ProxyServer::SCHEME_INVALID;
45 // ProxyServer::Scheme. This corresponds with the values used in
46 // ProxyServer::ToURI(). If no type could be matched, returns SCHEME_INVALID.
47 ProxyServer::Scheme GetSchemeFromURIInternal(std::string::const_iterator begin,
50 return ProxyServer::SCHEME_HTTP;
52 return ProxyServer::SCHEME_SOCKS4;
54 return ProxyServer::SCHEME_SOCKS5;
56 return ProxyServer::SCHEME_SOCKS5;
58 return ProxyServer::SCHEME_DIRECT;
60 return ProxyServer::SCHEME_HTTPS;
61 return ProxyServer::SCHEME_INVALID;
74 ProxyServer::ProxyServer(Scheme scheme, const HostPortPair& host_port_pair)
85 const HostPortPair& ProxyServer::host_port_pair() const {
93 ProxyServer ProxyServer::FromURI(const std::string& uri,
99 ProxyServer ProxyServer::FromURI(std::string::const_iterator begin,
122 std::string ProxyServer::ToURI() const {
143 ProxyServer ProxyServer::FromPacString(const std::string& pac_string) {
148 ProxyServer ProxyServer::FromPacString(std::string::const_iterator begin,
172 std::string ProxyServer::ToPacString() const {
193 int ProxyServer::GetDefaultPortForScheme(Scheme scheme) {
208 ProxyServer::Scheme ProxyServer::GetSchemeFromURI(const std::string& scheme) {
213 ProxyServer ProxyServer::FromSchemeHostAndPort(
222 return ProxyServer(); // Invalid -- DIRECT cannot have a host/port.
232 return ProxyServer(); // Invalid -- failed parsing <host>[":"<port>]
241 return ProxyServer(scheme, host_port_pair);