Home | History | Annotate | Download | only in autocomplete

Lines Matching defs:URLPrefix

11 URLPrefix::URLPrefix(const string16& prefix, size_t num_components)
17 const URLPrefixes& URLPrefix::GetURLPrefixes() {
20 prefixes.push_back(URLPrefix(ASCIIToUTF16("https://www."), 2));
21 prefixes.push_back(URLPrefix(ASCIIToUTF16("http://www."), 2));
22 prefixes.push_back(URLPrefix(ASCIIToUTF16("ftp://ftp."), 2));
23 prefixes.push_back(URLPrefix(ASCIIToUTF16("ftp://www."), 2));
24 prefixes.push_back(URLPrefix(ASCIIToUTF16("https://"), 1));
25 prefixes.push_back(URLPrefix(ASCIIToUTF16("http://"), 1));
26 prefixes.push_back(URLPrefix(ASCIIToUTF16("ftp://"), 1));
27 prefixes.push_back(URLPrefix(string16(), 0));
33 bool URLPrefix::IsURLPrefix(const string16& prefix) {
42 const URLPrefix* URLPrefix::BestURLPrefix(const string16& text,