Searched refs:scheme_pos (Results 1 – 2 of 2) sorted by relevance
215 size_t scheme_pos = in TrimHttpPrefix() local217 DCHECK_NE(base::string16::npos, scheme_pos); in TrimHttpPrefix()220 size_t prefix_end = scheme_pos + strlen(url::kHttpScheme) + 1; in TrimHttpPrefix()224 url->erase(scheme_pos, prefix_end - scheme_pos); in TrimHttpPrefix()225 return (scheme_pos == 0) ? prefix_end : 0; in TrimHttpPrefix()
275 std::string::size_type scheme_pos = raw.find("://"); in AddRuleFromStringInternal() local277 if (scheme_pos != std::string::npos) { in AddRuleFromStringInternal()278 scheme = raw.substr(0, scheme_pos); in AddRuleFromStringInternal()279 raw = raw.substr(scheme_pos + 3); in AddRuleFromStringInternal()