Lines Matching refs:begin
21 std::string::const_iterator begin,
23 if (LowerCaseEqualsASCII(begin, end, "proxy"))
25 if (LowerCaseEqualsASCII(begin, end, "socks")) {
31 if (LowerCaseEqualsASCII(begin, end, "socks4"))
33 if (LowerCaseEqualsASCII(begin, end, "socks5"))
35 if (LowerCaseEqualsASCII(begin, end, "direct"))
37 if (LowerCaseEqualsASCII(begin, end, "https"))
46 ProxyServer::Scheme GetSchemeFromURIInternal(std::string::const_iterator begin,
48 if (LowerCaseEqualsASCII(begin, end, "http"))
50 if (LowerCaseEqualsASCII(begin, end, "socks4"))
52 if (LowerCaseEqualsASCII(begin, end, "socks"))
54 if (LowerCaseEqualsASCII(begin, end, "socks5"))
56 if (LowerCaseEqualsASCII(begin, end, "direct"))
58 if (LowerCaseEqualsASCII(begin, end, "https"))
94 return FromURI(uri.begin(), uri.end(), default_scheme);
98 ProxyServer ProxyServer::FromURI(std::string::const_iterator begin,
105 HttpUtil::TrimLWS(&begin, &end);
108 std::string::const_iterator colon = std::find(begin, end, ':');
113 scheme = GetSchemeFromURIInternal(begin, colon);
114 begin = colon + 3; // Skip past the "://"
118 return FromSchemeHostAndPort(scheme, begin, end);
143 return FromPacString(pac_string.begin(), pac_string.end());
147 ProxyServer ProxyServer::FromPacString(std::string::const_iterator begin,
150 HttpUtil::TrimLWS(&begin, &end);
157 for (space = begin; space != end; ++space) {
164 Scheme scheme = GetSchemeFromPacTypeInternal(begin, space);
208 return GetSchemeFromURIInternal(scheme.begin(), scheme.end());
230 std::string::const_iterator begin,
234 HttpUtil::TrimLWS(&begin, &end);
236 if (scheme == SCHEME_DIRECT && begin != end)
245 bool ok = net::ParseHostAndPort(begin, end, &host, &port);