Home | History | Annotate | Download | only in proxy

Lines Matching refs:scheme

18 // Parses the proxy type from a PAC string, to a ProxyServer::Scheme.
21 ProxyServer::Scheme GetSchemeFromPacTypeInternal(
44 // Parses the proxy scheme from a URL-like representation, to a
45 // ProxyServer::Scheme. This corresponds with the values used in
47 ProxyServer::Scheme GetSchemeFromURIInternal(std::string::const_iterator begin,
74 ProxyServer::ProxyServer(Scheme scheme, const HostPortPair& host_port_pair)
75 : scheme_(scheme), host_port_pair_(host_port_pair) {
86 // Doesn't make sense to call this if the URI scheme doesn't
94 Scheme default_scheme) {
101 Scheme default_scheme) {
102 // We will default to |default_scheme| if no scheme specifier was given.
103 Scheme scheme = default_scheme;
108 // Check for [<scheme> "://"]
114 scheme = GetSchemeFromURIInternal(begin, colon);
119 return FromSchemeHostAndPort(scheme, begin, end);
127 // Leave off "http://" since it is our default scheme.
136 // Got called with an invalid scheme.
164 // Everything to the left of the space is the scheme.
165 Scheme scheme = GetSchemeFromPacTypeInternal(begin, space);
169 return FromSchemeHostAndPort(scheme, space, end);
186 // Got called with an invalid scheme.
193 int ProxyServer::GetDefaultPortForScheme(Scheme scheme) {
194 switch (scheme) {
208 ProxyServer::Scheme ProxyServer::GetSchemeFromURI(const std::string& scheme) {
209 return GetSchemeFromURIInternal(scheme.begin(), scheme.end());
214 Scheme scheme,
221 if (scheme == SCHEME_DIRECT && begin != end)
226 if (scheme != SCHEME_INVALID && scheme != SCHEME_DIRECT) {
229 // If the scheme has a host/port, parse it.
236 port = GetDefaultPortForScheme(scheme);
241 return ProxyServer(scheme, host_port_pair);