Home | History | Annotate | Download | only in proxy

Lines Matching refs:raw

193 void ProxyBypassRules::ParseFromString(const std::string& raw) {
194 ParseFromStringInternal(raw, false);
198 const std::string& raw) {
199 ParseFromStringInternal(raw, true);
218 bool ProxyBypassRules::AddRuleFromString(const std::string& raw) {
219 return AddRuleFromStringInternalWithLogging(raw, false);
223 const std::string& raw) {
224 return AddRuleFromStringInternalWithLogging(raw, true);
253 const std::string& raw,
257 base::StringTokenizer entries(raw, ",;");
267 std::string raw;
268 base::TrimWhitespaceASCII(raw_untrimmed, base::TRIM_ALL, &raw);
272 if (LowerCaseEqualsASCII(raw, "<local>")) {
278 std::string::size_type scheme_pos = raw.find("://");
281 scheme = raw.substr(0, scheme_pos);
282 raw = raw.substr(scheme_pos + 3);
287 if (raw.empty())
292 if (raw.find('/') != std::string::npos) {
296 if (!ParseCIDRBlock(raw, &ip_prefix, &prefix_length_in_bits))
300 new BypassIPBlockRule(raw, scheme, ip_prefix, prefix_length_in_bits));
309 if (ParseHostAndPort(raw, &host, &port)) {
321 std::string::size_type pos_colon = raw.rfind(':');
322 host = raw;
325 if (!base::StringToInt(base::StringPiece(raw.begin() + pos_colon + 1,
326 raw.end()),
331 raw = raw.substr(0, pos_colon);
336 if (StartsWithASCII(raw, ".", false))
337 raw = "*" + raw;
341 if (use_hostname_suffix_matching && !StartsWithASCII(raw, "*", false))
342 raw = "*" + raw;
344 return AddRuleForHostname(scheme, raw, port);
348 const std::string& raw,
350 return AddRuleFromStringInternal(raw, use_hostname_suffix_matching);