/external/chromium/chrome/browser/search_engines/ |
search_host_to_urls_map.cc | 91 const TemplateURL* t_url = *url_set_iterator; local 92 if ((t_url->url() && t_url->url()->HasGoogleBaseURLs()) || 93 (t_url->suggestions_url() && 94 t_url->suggestions_url()->HasGoogleBaseURLs())) { 95 t_urls_using_base_url.push_back(t_url);
|
search_provider_install_data_unittest.cc | 28 TemplateURL* t_url = new TemplateURL(); local 29 t_url->SetURL(url, 0, 0); 30 t_url->set_keyword(UTF8ToUTF16(keyword)); 31 t_url->set_short_name(UTF8ToUTF16(keyword)); 32 return t_url; 228 TemplateURL* t_url = CreateTemplateURL("http://" + host + "/path", local 230 util_.model()->Add(t_url); 256 TemplateURL* t_url = CreateTemplateURL("http://" + host + "/path", local 258 util_.model()->Add(t_url); 290 TemplateURL* t_url = CreateTemplateURL("{google:baseURL}?q={searchTerms}" local [all...] |
template_url_fetcher_unittest.cc | 204 const TemplateURL* t_url = test_util_.model()->GetTemplateURLForKeyword( local 206 ASSERT_TRUE(t_url); 208 t_url->url()->DisplayURL()); 209 EXPECT_TRUE(t_url->safe_for_autoreplace()); 356 TemplateURL* t_url = new TemplateURL(); local 357 t_url->SetURL("http://example.com/", 0, 0); 358 t_url->set_keyword(keyword); 359 t_url->set_short_name(keyword); 360 test_util_.model()->Add(t_url);
|
template_url_unittest.cc | 85 TemplateURL t_url; local 90 GURL result = GURL(ref.ReplaceSearchTerms(t_url, value.terms, 98 TemplateURL t_url; local 102 GURL result = GURL(ref.ReplaceSearchTerms(t_url, ASCIIToUTF16("X"), 109 TemplateURL t_url; local 113 GURL result = GURL(ref.ReplaceSearchTerms(t_url, ASCIIToUTF16("X"), 120 TemplateURL t_url; local 125 GURL result = GURL(ref.ReplaceSearchTerms(t_url, ASCIIToUTF16("X"), 132 TemplateURL t_url; local 136 GURL result = GURL(ref.ReplaceSearchTerms(t_url, ASCIIToUTF16("X") 143 TemplateURL t_url; local 155 TemplateURL t_url; local 167 TemplateURL t_url; local 193 TemplateURL t_url; local 227 TemplateURL t_url; local 394 TemplateURL t_url; local 437 TemplateURL t_url; local 464 TemplateURL t_url; local [all...] |
template_url_model_unittest.cc | 95 TemplateURL* t_url = new TemplateURL(); local 96 t_url->SetURL("http://www.unittest.com/", 0, 0); 97 t_url->set_keyword(ASCIIToUTF16("unittest")); 98 t_url->set_short_name(ASCIIToUTF16("unittest")); 99 t_url->set_safe_for_autoreplace(true); 101 t_url->SetFaviconURL(favicon_url); 102 t_url->set_date_created(Time::FromTimeT(100)); 103 t_url->set_prepopulate_id(999999); 104 return t_url; 307 TemplateURL t_url; local 328 TemplateURL* t_url = CreatePreloadedTemplateURL(); local 349 TemplateURL* t_url = CreateReplaceablePreloadedTemplateURL( local 390 TemplateURL* t_url = new TemplateURL(); local 556 TemplateURL* t_url = new TemplateURL(); local 597 TemplateURL* t_url = AddKeywordWithDate("key1", false, "http:\/\/foo1", local 653 TemplateURL* t_url = AddKeywordWithDate("foo", false, "http:\/\/foo1", local 673 TemplateURL* t_url = AddKeywordWithDate("foo", false, "http:\/\/foo.com", local 848 const TemplateURL* t_url = AddKeywordWithDate("", true, local 894 TemplateURL* t_url = AddKeywordWithDate( local 933 TemplateURL* t_url = CreatePreloadedTemplateURL(); local 959 TemplateURL* t_url = CreatePreloadedTemplateURL(); local 1013 TemplateURL* t_url = CreatePreloadedTemplateURL(); local 1067 TemplateURL* t_url = CreateReplaceablePreloadedTemplateURL( local [all...] |
template_url_model.cc | 187 GURL TemplateURLModel::GenerateSearchURL(const TemplateURL* t_url) { 188 DCHECK(t_url); 190 return GenerateSearchURLUsingTermsData(t_url, search_terms_data); 195 const TemplateURL* t_url, 197 DCHECK(t_url); 198 const TemplateURLRef* search_ref = t_url->url(); 201 t_url->IsExtensionKeyword()) 208 *t_url, ASCIIToUTF16(kReplacementTerm), 613 void TemplateURLModel::SetKeywordSearchTermsForURL(const TemplateURL* t_url, 620 history->SetKeywordSearchTermsForURL(url, t_url->id(), term) 1066 const TemplateURL* t_url = template_urls_[i]; local [all...] |
template_url_parser.cc | 395 TemplateURL* t_url = context->template_url(); local 397 context->is_suggestion() ? t_url->suggestions_url() : 398 t_url->url(); 442 t_url->SetSuggestionsURL(url.spec(), 446 t_url->SetURL(url.spec(),
|
/external/chromium/chrome/browser/importer/ |
profile_writer.cc | 169 // If |try_url_if_invalid| is true, and |t_url| isn't valid, a string is built 177 static std::string BuildHostPathKey(const TemplateURL* t_url, 179 if (t_url->url()) { 180 if (try_url_if_invalid && !t_url->url()->IsValid()) 181 return HostPathKeyForURL(GURL(t_url->url()->url())); 183 if (t_url->url()->SupportsReplacement()) { 185 t_url->url()->ReplaceSearchTerms( 186 *t_url, ASCIIToUTF16("random string"), 226 TemplateURL* t_url = *i; local 234 model->GetTemplateURLForKeyword(t_url->keyword()) [all...] |
firefox2_importer.cc | 137 TemplateURL* t_url = new TemplateURL(); 140 t_url->set_short_name(!title.empty() ? title : keyword); 141 t_url->set_keyword(keyword); 142 t_url->SetURL(TemplateURLRef::DisplayURLToURLRef(UTF8ToUTF16(url.spec())), 144 return t_url; 237 TemplateURL* t_url = CreateTemplateURL(title, shortcut, url); local 238 if (t_url) 239 template_urls->push_back(t_url);
|
firefox3_importer.cc | 281 TemplateURL* t_url = Firefox2Importer::CreateTemplateURL( local 283 if (t_url) 284 template_urls.push_back(t_url);
|
/external/chromium/chrome/browser/instant/ |
instant_controller.cc | 623 const TemplateURL* t_url = GetTemplateURL(match); local 624 if (t_url) { 625 if (!t_url->id() || 626 !t_url->instant_url() || 627 IsBlacklistedFromInstant(t_url->id()) || 628 !t_url->instant_url()->SupportsReplacement()) { 634 *template_url = t_url;
|