HomeSort by relevance Sort by last modified time
    Searched refs:t_url (Results 1 - 24 of 24) sorted by null

  /external/chromium/chrome/browser/search_engines/
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_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...]
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...]
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);
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_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_model.h 88 // Returns the search url for t_url. Returns an empty GURL if t_url has no
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);
330 // If necessary, generates a visit for the site http:// + t_url.keyword().
331 void AddTabToSearchVisit(const TemplateURL& t_url);
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(),
template_url_model_test_util.cc 95 virtual void SetKeywordSearchTermsForURL(const TemplateURL* t_url,
  /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_org/chrome/browser/search_engines/
template_url_service_unittest.cc 114 TemplateURL* t_url = new TemplateURL(model->profile(), data); local
115 model->Add(t_url);
116 EXPECT_NE(0, t_url->id());
117 return t_url;
256 TemplateURL t_url(NULL, data);
260 &t_url, *search_terms_data).spec();
262 result = TemplateURLService::GenerateSearchURL(&t_url).spec();
348 TemplateURL* t_url = CreatePreloadedTemplateURL(safe_for_autoreplace, local
352 return t_url;
358 TemplateURL* t_url = CreateReplaceablePreloadedTemplateURL(false local
425 TemplateURL* t_url = new TemplateURL(test_util_.profile(), data); local
500 TemplateURL* t_url = new TemplateURL(test_util_.profile(), data); local
608 TemplateURL* t_url = new TemplateURL(test_util_.profile(), data); local
779 TemplateURL* t_url = new TemplateURL(test_util_.profile(), data); local
819 TemplateURL* t_url = AddKeywordWithDate( local
846 TemplateURL* t_url = AddKeywordWithDate( local
867 TemplateURL* t_url = AddKeywordWithDate( local
905 TemplateURL* t_url = new TemplateURL(test_util_.profile(), data); local
1096 const TemplateURL* t_url = AddKeywordWithDate( local
1154 TemplateURL* t_url = AddKeywordWithDate( local
1195 TemplateURL* t_url = CreatePreloadedTemplateURL(true, 999999); local
1221 TemplateURL* t_url = CreatePreloadedTemplateURL(false, 999999); local
1314 TemplateURL* t_url = CreatePreloadedTemplateURL(true, 999999); local
1563 TemplateURL* t_url = new TemplateURL(test_util_.profile(), data); local
1600 TemplateURL* t_url = new TemplateURL(test_util_.profile(), data); local
    [all...]
template_url_service.cc 397 GURL TemplateURLService::GenerateSearchURL(TemplateURL* t_url) {
398 DCHECK(t_url);
399 UIThreadSearchTermsData search_terms_data(t_url->profile());
400 return GenerateSearchURLUsingTermsData(t_url, search_terms_data);
405 const TemplateURL* t_url,
407 DCHECK(t_url);
409 const TemplateURLRef& search_ref = t_url->url_ref();
414 return GURL(t_url->url());
508 TemplateURL* t_url = provider_map_->GetTemplateURLForHost(host); local
509 if (t_url)
1957 TemplateURL* t_url = *i; local
    [all...]
template_url_service.h 108 // Returns the search url for t_url. Returns an empty GURL if t_url has no
110 // NOTE: |t_url| is non-const in this version because of the need to access
111 // t_url->profile().
112 static GURL GenerateSearchURL(TemplateURL* t_url);
119 const TemplateURL* t_url,
359 virtual void SetKeywordSearchTermsForURL(const TemplateURL* t_url,
468 bool CanReplace(const TemplateURL* t_url);
501 // If necessary, generates a visit for the site http:// + t_url.keyword().
502 void AddTabToSearchVisit(const TemplateURL& t_url);
    [all...]
template_url_fetcher_unittest.cc 183 const TemplateURL* t_url = test_util_.model()->GetTemplateURLForKeyword( local
185 ASSERT_TRUE(t_url);
187 t_url->url_ref().DisplayURL());
188 EXPECT_TRUE(t_url->safe_for_autoreplace());
search_provider_install_data_unittest.cc 200 TemplateURL* t_url = new TemplateURL(util_.profile(), data); local
201 util_.model()->Add(t_url);
202 return t_url;
template_url_service_test_util.cc 46 virtual void SetKeywordSearchTermsForURL(const TemplateURL* t_url,
  /external/chromium/chrome/browser/ui/search_engines/
edit_search_engine_controller.cc 135 TemplateURL t_url;
136 t_url.SetURL(url, 0, 0);
138 t_url.url()->ReplaceSearchTerms(t_url, ASCIIToUTF16("x"), 0, string16());
  /external/chromium_org/chrome/browser/ui/search_engines/
edit_search_engine_controller.cc 46 TemplateURL t_url(profile_, data);
47 const TemplateURLRef& template_ref = t_url.url_ref();
135 TemplateURL t_url(profile_, data);
136 std::string expanded_url(t_url.url_ref().ReplaceSearchTerms(
  /external/chromium_org/chrome/browser/importer/
profile_writer.cc 242 // If |try_url_if_invalid| is true, and |t_url| isn't valid, a string is built
250 static std::string BuildHostPathKey(const TemplateURL* t_url,
252 if (try_url_if_invalid && !t_url->url_ref().IsValid())
253 return HostPathKeyForURL(GURL(t_url->url()));
255 if (t_url->url_ref().SupportsReplacement()) {
257 t_url->url_ref().ReplaceSearchTerms(
  /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;
  /external/chromium_org/chrome/browser/autocomplete/
autocomplete_match.cc 403 const TemplateURL* t_url = GetTemplateURL(profile, false); local
404 return (t_url && t_url->SupportsReplacement()) ? keyword : string16();
search_provider_unittest.cc 99 // Adds a search for |term|, using the engine |t_url| to the history, and
101 GURL AddSearchToHistory(TemplateURL* t_url, string16 term, int visit_count);
301 GURL SearchProviderTest::AddSearchToHistory(TemplateURL* t_url,
307 GURL search(t_url->url_ref().ReplaceSearchTerms(
314 history->SetKeywordSearchTermsForURL(search, t_url->id(), term);
    [all...]

Completed in 355 milliseconds