• Home
  • Raw
  • Download

Lines Matching full:scheme

22 // Parses the proxy type from a PAC string, to a ProxyServer::Scheme.
25 ProxyServer::Scheme GetSchemeFromPacTypeInternal(base::StringPiece 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()
117 // Everything to the left of the space is the scheme. in PacResultElementToProxyServer()
118 ProxyServer::Scheme scheme = in PacResultElementToProxyServer() local
123 return FromSchemeHostAndPort(scheme, pac_result_element.substr(space)); in PacResultElementToProxyServer()
127 switch (proxy_server.scheme()) { in ProxyServerToPacResultElement()
152 // Got called with an invalid scheme. in ProxyServerToPacResultElement()
159 ProxyServer::Scheme default_scheme) { in ProxyUriToProxyServer()
160 // We will default to |default_scheme| if no scheme specifier was given. in ProxyUriToProxyServer()
161 ProxyServer::Scheme scheme = default_scheme; in ProxyUriToProxyServer() local
166 // Check for [<scheme> "://"] in ProxyUriToProxyServer()
170 scheme = GetSchemeFromUriScheme(uri.substr(0, colon)); in ProxyUriToProxyServer()
175 return FromSchemeHostAndPort(scheme, uri); in ProxyUriToProxyServer()
179 switch (proxy_server.scheme()) { in ProxyServerToProxyUri()
183 // Leave off "http://" since it is our default scheme. in ProxyServerToProxyUri()
203 // Got called with an invalid scheme. in ProxyServerToProxyUri()
209 ProxyServer::Scheme GetSchemeFromUriScheme(base::StringPiece scheme) { in GetSchemeFromUriScheme() argument
210 if (base::EqualsCaseInsensitiveASCII(scheme, "http")) in GetSchemeFromUriScheme()
212 if (base::EqualsCaseInsensitiveASCII(scheme, "socks4")) in GetSchemeFromUriScheme()
214 if (base::EqualsCaseInsensitiveASCII(scheme, "socks")) in GetSchemeFromUriScheme()
216 if (base::EqualsCaseInsensitiveASCII(scheme, "socks5")) in GetSchemeFromUriScheme()
218 if (base::EqualsCaseInsensitiveASCII(scheme, "direct")) in GetSchemeFromUriScheme()
220 if (base::EqualsCaseInsensitiveASCII(scheme, "https")) in GetSchemeFromUriScheme()
222 if (base::EqualsCaseInsensitiveASCII(scheme, "quic")) in GetSchemeFromUriScheme()