Home | History | Annotate | Download | only in omnibox

Lines Matching defs:URLPrefix

13 // Like URLPrefix::BestURLPrefix() except also handles the prefix of
15 const URLPrefix* BestURLPrefixWithWWWCase(
18 CR_DEFINE_STATIC_LOCAL(URLPrefix, www_prefix,
20 const URLPrefix* best_prefix = URLPrefix::BestURLPrefix(text, prefix_suffix);
23 if (URLPrefix::PrefixMatch(www_prefix, text, prefix_suffix))
31 URLPrefix::URLPrefix(const base::string16& prefix, size_t num_components)
37 const URLPrefixes& URLPrefix::GetURLPrefixes() {
40 prefixes.push_back(URLPrefix(base::ASCIIToUTF16("https://www."), 2));
41 prefixes.push_back(URLPrefix(base::ASCIIToUTF16("http://www."), 2));
42 prefixes.push_back(URLPrefix(base::ASCIIToUTF16("ftp://www."), 2));
43 prefixes.push_back(URLPrefix(base::ASCIIToUTF16("https://"), 1));
44 prefixes.push_back(URLPrefix(base::ASCIIToUTF16("http://"), 1));
45 prefixes.push_back(URLPrefix(base::ASCIIToUTF16("ftp://"), 1));
46 prefixes.push_back(URLPrefix(base::string16(), 0));
52 bool URLPrefix::IsURLPrefix(const base::string16& prefix) {
61 const URLPrefix* URLPrefix::BestURLPrefix(const base::string16& text,
71 bool URLPrefix::PrefixMatch(const URLPrefix& prefix,
78 size_t URLPrefix::GetInlineAutocompleteOffset(
83 const URLPrefix* best_prefix = allow_www_prefix_without_scheme ?