Home | History | Annotate | Download | only in proxy

Lines Matching refs:raw

188 void ProxyBypassRules::ParseFromString(const std::string& raw) {
189 ParseFromStringInternal(raw, false);
193 const std::string& raw) {
194 ParseFromStringInternal(raw, true);
213 bool ProxyBypassRules::AddRuleFromString(const std::string& raw) {
214 return AddRuleFromStringInternalWithLogging(raw, false);
218 const std::string& raw) {
219 return AddRuleFromStringInternalWithLogging(raw, true);
248 const std::string& raw,
252 StringTokenizer entries(raw, ",;");
262 std::string raw;
263 TrimWhitespaceASCII(raw_untrimmed, TRIM_ALL, &raw);
267 if (LowerCaseEqualsASCII(raw, "<local>")) {
273 std::string::size_type scheme_pos = raw.find("://");
276 scheme = raw.substr(0, scheme_pos);
277 raw = raw.substr(scheme_pos + 3);
282 if (raw.empty())
287 if (raw.find('/') != std::string::npos) {
291 if (!ParseCIDRBlock(raw, &ip_prefix, &prefix_length_in_bits))
295 new BypassIPBlockRule(raw, scheme, ip_prefix, prefix_length_in_bits));
304 if (ParseHostAndPort(raw, &host, &port)) {
313 std::string::size_type pos_colon = raw.rfind(':');
314 host = raw;
317 if (!base::StringToInt(raw.begin() + pos_colon + 1, raw.end(), &port) ||
321 raw = raw.substr(0, pos_colon);
326 if (StartsWithASCII(raw, ".", false))
327 raw = "*" + raw;
331 if (use_hostname_suffix_matching && !StartsWithASCII(raw, "*", false))
332 raw = "*" + raw;
334 return AddRuleForHostname(scheme, raw, port);
338 const std::string& raw,
340 return AddRuleFromStringInternal(raw, use_hostname_suffix_matching);