Home | History | Annotate | Download | only in proxy

Lines Matching refs:scheme

18 // Parse the proxy type from a PAC string, to a ProxyServer::Scheme.
21 ProxyServer::Scheme GetSchemeFromPacType(std::string::const_iterator begin,
41 // Parse the proxy scheme from a URL-like representation, to a
42 // ProxyServer::Scheme. This corresponds with the values used in
44 ProxyServer::Scheme GetSchemeFromURI(std::string::const_iterator begin,
62 // Doesn't make sense to call this if the URI scheme doesn't
74 // Doesn't make sense to call this if the URI scheme doesn't
81 // Doesn't make sense to call this if the URI scheme doesn't
89 Scheme default_scheme) {
96 Scheme default_scheme) {
97 // We will default to |default_scheme| if no scheme specifier was given.
98 Scheme scheme = default_scheme;
103 // Check for [<scheme> "://"]
109 scheme = GetSchemeFromURI(begin, colon);
114 return FromSchemeHostAndPort(scheme, begin, end);
122 // Leave off "http://" since it is our default scheme.
129 // Got called with an invalid scheme.
156 // Everything to the left of the space is the scheme.
157 Scheme scheme = GetSchemeFromPacType(begin, space);
161 return FromSchemeHostAndPort(scheme, space, end);
176 // Got called with an invalid scheme.
183 int ProxyServer::GetDefaultPortForScheme(Scheme scheme) {
184 switch (scheme) {
197 Scheme scheme,
204 if (scheme == SCHEME_DIRECT && begin != end)
210 if (scheme != SCHEME_INVALID && scheme != SCHEME_DIRECT) {
211 // If the scheme has a host/port, parse it.
219 port = GetDefaultPortForScheme(scheme);
221 return ProxyServer(scheme, host, port);