Lines Matching full:scheme
22 // Parses the proxy type from a PAC string, to a ProxyServer::Scheme.
25 ProxyServer::Scheme GetSchemeFromPacTypeInternal(std::string_view type) { in GetSchemeFromPacTypeInternal()
48 ProxyServer FromSchemeHostAndPort(ProxyServer::Scheme scheme, in FromSchemeHostAndPort() argument
53 if (scheme == ProxyServer::SCHEME_INVALID) in FromSchemeHostAndPort()
56 if (scheme == ProxyServer::SCHEME_DIRECT) { in FromSchemeHostAndPort()
88 return ProxyServer::FromSchemeHostAndPort(scheme, hostname, port); in FromSchemeHostAndPort()
122 // Everything to the left of the space is the scheme. in PacResultElementToProxyServer()
123 ProxyServer::Scheme scheme = in PacResultElementToProxyServer() local
128 return FromSchemeHostAndPort(scheme, pac_result_element.substr(space)); in PacResultElementToProxyServer()
132 switch (proxy_server.scheme()) { in ProxyServerToPacResultElement()
157 // Got called with an invalid scheme. in ProxyServerToPacResultElement()
164 ProxyServer::Scheme default_scheme) { in ProxyUriToProxyChain()
169 ProxyServer::Scheme default_scheme) { in ProxyUriToProxyServer()
170 // We will default to |default_scheme| if no scheme specifier was given. in ProxyUriToProxyServer()
171 ProxyServer::Scheme scheme = default_scheme; in ProxyUriToProxyServer() local
176 // Check for [<scheme> "://"] in ProxyUriToProxyServer()
180 scheme = GetSchemeFromUriScheme(uri.substr(0, colon)); in ProxyUriToProxyServer()
185 return FromSchemeHostAndPort(scheme, uri); in ProxyUriToProxyServer()
189 switch (proxy_server.scheme()) { in ProxyServerToProxyUri()
193 // Leave off "http://" since it is our default scheme. in ProxyServerToProxyUri()
213 // Got called with an invalid scheme. in ProxyServerToProxyUri()
219 ProxyServer::Scheme GetSchemeFromUriScheme(std::string_view scheme) { in GetSchemeFromUriScheme() argument
220 if (base::EqualsCaseInsensitiveASCII(scheme, "http")) in GetSchemeFromUriScheme()
222 if (base::EqualsCaseInsensitiveASCII(scheme, "socks4")) in GetSchemeFromUriScheme()
224 if (base::EqualsCaseInsensitiveASCII(scheme, "socks")) in GetSchemeFromUriScheme()
226 if (base::EqualsCaseInsensitiveASCII(scheme, "socks5")) in GetSchemeFromUriScheme()
228 if (base::EqualsCaseInsensitiveASCII(scheme, "direct")) in GetSchemeFromUriScheme()
230 if (base::EqualsCaseInsensitiveASCII(scheme, "https")) in GetSchemeFromUriScheme()
232 if (base::EqualsCaseInsensitiveASCII(scheme, "quic")) in GetSchemeFromUriScheme()