/external/chromium/chrome/browser/search_engines/ |
D | template_url_model_unittest.cc | 95 TemplateURL* t_url = new TemplateURL(); in CreatePreloadedTemplateURL() local 96 t_url->SetURL("http://www.unittest.com/", 0, 0); in CreatePreloadedTemplateURL() 97 t_url->set_keyword(ASCIIToUTF16("unittest")); in CreatePreloadedTemplateURL() 98 t_url->set_short_name(ASCIIToUTF16("unittest")); in CreatePreloadedTemplateURL() 99 t_url->set_safe_for_autoreplace(true); in CreatePreloadedTemplateURL() 101 t_url->SetFaviconURL(favicon_url); in CreatePreloadedTemplateURL() 102 t_url->set_date_created(Time::FromTimeT(100)); in CreatePreloadedTemplateURL() 103 t_url->set_prepopulate_id(999999); in CreatePreloadedTemplateURL() 104 return t_url; in CreatePreloadedTemplateURL() 307 TemplateURL t_url; in RunTest() local [all …]
|
D | template_url_unittest.cc | 85 TemplateURL t_url; in TEST_F() local 90 GURL result = GURL(ref.ReplaceSearchTerms(t_url, value.terms, in TEST_F() 98 TemplateURL t_url; in TEST_F() local 102 GURL result = GURL(ref.ReplaceSearchTerms(t_url, ASCIIToUTF16("X"), in TEST_F() 109 TemplateURL t_url; in TEST_F() local 113 GURL result = GURL(ref.ReplaceSearchTerms(t_url, ASCIIToUTF16("X"), in TEST_F() 120 TemplateURL t_url; in TEST_F() local 125 GURL result = GURL(ref.ReplaceSearchTerms(t_url, ASCIIToUTF16("X"), in TEST_F() 132 TemplateURL t_url; in TEST_F() local 136 GURL result = GURL(ref.ReplaceSearchTerms(t_url, ASCIIToUTF16("X"), in TEST_F() [all …]
|
D | template_url_model.cc | 187 GURL TemplateURLModel::GenerateSearchURL(const TemplateURL* t_url) { in GenerateSearchURL() argument 188 DCHECK(t_url); in GenerateSearchURL() 190 return GenerateSearchURLUsingTermsData(t_url, search_terms_data); in GenerateSearchURL() 195 const TemplateURL* t_url, in GenerateSearchURLUsingTermsData() argument 197 DCHECK(t_url); in GenerateSearchURLUsingTermsData() 198 const TemplateURLRef* search_ref = t_url->url(); in GenerateSearchURLUsingTermsData() 201 t_url->IsExtensionKeyword()) in GenerateSearchURLUsingTermsData() 208 *t_url, ASCIIToUTF16(kReplacementTerm), in GenerateSearchURLUsingTermsData() 613 void TemplateURLModel::SetKeywordSearchTermsForURL(const TemplateURL* t_url, in SetKeywordSearchTermsForURL() argument 620 history->SetKeywordSearchTermsForURL(url, t_url->id(), term); in SetKeywordSearchTermsForURL() [all …]
|
D | search_provider_install_data_unittest.cc | 28 TemplateURL* t_url = new TemplateURL(); in CreateTemplateURL() local 29 t_url->SetURL(url, 0, 0); in CreateTemplateURL() 30 t_url->set_keyword(UTF8ToUTF16(keyword)); in CreateTemplateURL() 31 t_url->set_short_name(UTF8ToUTF16(keyword)); in CreateTemplateURL() 32 return t_url; in CreateTemplateURL() 228 TemplateURL* t_url = CreateTemplateURL("http://" + host + "/path", in TEST_F() local 230 util_.model()->Add(t_url); in TEST_F() 256 TemplateURL* t_url = CreateTemplateURL("http://" + host + "/path", in TEST_F() local 258 util_.model()->Add(t_url); in TEST_F() 290 TemplateURL* t_url = CreateTemplateURL("{google:baseURL}?q={searchTerms}", in TEST_F() local [all …]
|
D | search_host_to_urls_map.cc | 91 const TemplateURL* t_url = *url_set_iterator; in UpdateGoogleBaseURLs() local 92 if ((t_url->url() && t_url->url()->HasGoogleBaseURLs()) || in UpdateGoogleBaseURLs() 93 (t_url->suggestions_url() && in UpdateGoogleBaseURLs() 94 t_url->suggestions_url()->HasGoogleBaseURLs())) { in UpdateGoogleBaseURLs() 95 t_urls_using_base_url.push_back(t_url); in UpdateGoogleBaseURLs()
|
D | template_url_fetcher_unittest.cc | 204 const TemplateURL* t_url = test_util_.model()->GetTemplateURLForKeyword( in TEST_F() local 206 ASSERT_TRUE(t_url); in TEST_F() 208 t_url->url()->DisplayURL()); in TEST_F() 209 EXPECT_TRUE(t_url->safe_for_autoreplace()); in TEST_F() 356 TemplateURL* t_url = new TemplateURL(); in TEST_F() local 357 t_url->SetURL("http://example.com/", 0, 0); in TEST_F() 358 t_url->set_keyword(keyword); in TEST_F() 359 t_url->set_short_name(keyword); in TEST_F() 360 test_util_.model()->Add(t_url); in TEST_F()
|
D | template_url_model.h | 90 static GURL GenerateSearchURL(const TemplateURL* t_url); 96 const TemplateURL* t_url, 246 virtual void SetKeywordSearchTermsForURL(const TemplateURL* t_url, 313 bool CanReplace(const TemplateURL* t_url); 331 void AddTabToSearchVisit(const TemplateURL& t_url);
|
D | template_url_parser.cc | 395 TemplateURL* t_url = context->template_url(); in ProcessURLParams() local 397 context->is_suggestion() ? t_url->suggestions_url() : in ProcessURLParams() 398 t_url->url(); in ProcessURLParams() 442 t_url->SetSuggestionsURL(url.spec(), in ProcessURLParams() 446 t_url->SetURL(url.spec(), in ProcessURLParams()
|
D | template_url_model_test_util.cc | 95 virtual void SetKeywordSearchTermsForURL(const TemplateURL* t_url, in SetKeywordSearchTermsForURL() argument
|
/external/chromium/chrome/browser/importer/ |
D | profile_writer.cc | 177 static std::string BuildHostPathKey(const TemplateURL* t_url, in BuildHostPathKey() argument 179 if (t_url->url()) { in BuildHostPathKey() 180 if (try_url_if_invalid && !t_url->url()->IsValid()) in BuildHostPathKey() 181 return HostPathKeyForURL(GURL(t_url->url()->url())); in BuildHostPathKey() 183 if (t_url->url()->SupportsReplacement()) { in BuildHostPathKey() 185 t_url->url()->ReplaceSearchTerms( in BuildHostPathKey() 186 *t_url, ASCIIToUTF16("random string"), in BuildHostPathKey() 226 TemplateURL* t_url = *i; in AddKeywords() local 234 model->GetTemplateURLForKeyword(t_url->keyword()); in AddKeywords() 238 delete t_url; in AddKeywords() [all …]
|
D | firefox2_importer.cc | 137 TemplateURL* t_url = new TemplateURL(); in CreateTemplateURL() local 140 t_url->set_short_name(!title.empty() ? title : keyword); in CreateTemplateURL() 141 t_url->set_keyword(keyword); in CreateTemplateURL() 142 t_url->SetURL(TemplateURLRef::DisplayURLToURLRef(UTF8ToUTF16(url.spec())), in CreateTemplateURL() 144 return t_url; in CreateTemplateURL() 237 TemplateURL* t_url = CreateTemplateURL(title, shortcut, url); in ImportBookmarksFile() local 238 if (t_url) in ImportBookmarksFile() 239 template_urls->push_back(t_url); in ImportBookmarksFile()
|
D | firefox3_importer.cc | 281 TemplateURL* t_url = Firefox2Importer::CreateTemplateURL( in ImportBookmarks() local 283 if (t_url) in ImportBookmarks() 284 template_urls.push_back(t_url); in ImportBookmarks()
|
/external/chromium/chrome/browser/ui/search_engines/ |
D | edit_search_engine_controller.cc | 135 TemplateURL t_url; in GetFixedUpURL() local 136 t_url.SetURL(url, 0, 0); in GetFixedUpURL() 138 t_url.url()->ReplaceSearchTerms(t_url, ASCIIToUTF16("x"), 0, string16()); in GetFixedUpURL()
|
/external/chromium/chrome/browser/instant/ |
D | instant_controller.cc | 623 const TemplateURL* t_url = GetTemplateURL(match); in ShouldShowPreviewFor() local 624 if (t_url) { in ShouldShowPreviewFor() 625 if (!t_url->id() || in ShouldShowPreviewFor() 626 !t_url->instant_url() || in ShouldShowPreviewFor() 627 IsBlacklistedFromInstant(t_url->id()) || in ShouldShowPreviewFor() 628 !t_url->instant_url()->SupportsReplacement()) { in ShouldShowPreviewFor() 634 *template_url = t_url; in ShouldShowPreviewFor()
|