Lines Matching refs:ProxyServer

20 // ProxyServer encodes the {type, host, port} of a proxy server.
21 // ProxyServer is immutable.
22 class NET_EXPORT ProxyServer {
38 // Constructs an invalid ProxyServer.
39 ProxyServer() : scheme_(SCHEME_INVALID) {}
41 ProxyServer(Scheme scheme, const HostPortPair& host_port_pair);
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 an HTTPS proxy.
57 // Returns true if this ProxyServer is a SOCKS proxy.
82 static ProxyServer FromURI(const std::string& uri, Scheme default_scheme);
83 static ProxyServer FromURI(std::string::const_iterator uri_begin,
103 static ProxyServer FromPacString(const std::string& pac_string);
104 static ProxyServer FromPacString(std::string::const_iterator pac_string_begin,
107 // Returns a ProxyServer representing DIRECT connections.
108 static ProxyServer Direct() {
109 return ProxyServer(SCHEME_DIRECT, HostPortPair());
114 // it as a ProxyServer object. Pass in a dictionary that has a value for the
117 // ProxyServer.
118 static ProxyServer FromDictionary(Scheme scheme,
132 // ProxyServer::Scheme. This corresponds with the values used in
133 // ProxyServer::ToURI(). If no type could be matched, returns SCHEME_INVALID.
137 bool operator==(const ProxyServer& other) const {
143 bool operator<(const ProxyServer& other) const {
150 // Creates a ProxyServer given a scheme, and host/port string. If parsing the
152 static ProxyServer FromSchemeHostAndPort(
161 typedef std::pair<HostPortPair, ProxyServer> HostPortProxyPair;