Home
last modified time | relevance | path

Searched refs:search_terms (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium_org/chrome/browser/search/
Dsearch_terms_tracker.cc35 base::string16* search_terms, in GetSearchTerms() argument
39 if (it != tabs_.end() && !it->second.search_terms.empty()) { in GetSearchTerms()
40 if (search_terms) in GetSearchTerms()
41 *search_terms = it->second.search_terms; in GetSearchTerms()
103 &tab_data->search_terms); in FindMostRecentSearch()
Dsearch.cc237 base::string16 search_terms = GetSearchTermsFromNavigationEntry(entry); in GetSearchTermsImpl() local
238 if (!search_terms.empty()) in GetSearchTermsImpl()
239 return search_terms; in GetSearchTermsImpl()
356 base::string16 search_terms; in ExtractSearchTermsFromURL() local
359 url, UIThreadSearchTermsData(profile), &search_terms); in ExtractSearchTermsFromURL()
360 return search_terms; in ExtractSearchTermsFromURL()
370 base::string16 search_terms; in GetSearchTermsFromNavigationEntry() local
372 entry->GetExtraData(sessions::kSearchTermsKey, &search_terms); in GetSearchTermsFromNavigationEntry()
373 return search_terms; in GetSearchTermsFromNavigationEntry()
431 const base::string16 search_terms = ExtractSearchTermsFromURL(profile, url); in IsNTPURL() local
[all …]
Dsearch_terms_tracker.h38 base::string16* search_terms,
49 base::string16 search_terms; member
/external/chromium_org/chrome/browser/ui/search/
Dinstant_controller.cc50 const base::string16& search_terms) { in EnsureSearchTermsAreSet() argument
55 if (chrome::GetSearchTerms(contents) == search_terms || in EnsureSearchTermsAreSet()
67 transient->SetExtraData(sessions::kSearchTermsKey, search_terms); in EnsureSearchTermsAreSet()
82 bool InstantController::SubmitQuery(const base::string16& search_terms) { in SubmitQuery() argument
88 search_terms); in SubmitQuery()
90 EnsureSearchTermsAreSet(instant_tab_->web_contents(), search_terms); in SubmitQuery()
Dinstant_search_prerenderer.cc126 base::string16 search_terms = in UsePrerenderedPage() local
130 if (search_terms.empty() || !params->target_contents || in UsePrerenderedPage()
132 !QueryMatchesPrefetch(search_terms) || in UsePrerenderedPage()
Dinstant_controller.h52 bool SubmitQuery(const base::string16& search_terms);
/external/chromium_org/chrome/browser/ui/
Dbrowser_instant_controller.cc75 const base::string16& search_terms = in OpenInstant() local
77 if (search_terms.empty()) in OpenInstant()
83 if (prerenderer->CanCommitQuery(GetActiveWebContents(), search_terms)) { in OpenInstant()
86 prerenderer->Commit(search_terms); in OpenInstant()
98 return instant_.SubmitQuery(search_terms); in OpenInstant()
/external/chromium_org/components/search_engines/
Dtemplate_url_unittest.cc1154 TemplateURLRef::SearchTermsArgs search_terms(ASCIIToUTF16("Bob Morane")); in TEST_F() local
1158 GURL("http://google.com/?q=something"), search_terms, in TEST_F()
1164 GURL("http://google.ca/?q=something"), search_terms, in TEST_F()
1169 GURL("http://google.com/foo/?q=foo"), search_terms, in TEST_F()
1173 GURL("https://google.com/?q=foo"), search_terms, in TEST_F()
1178 GURL("http://google.com:8080/?q=foo"), search_terms, in TEST_F()
1182 GURL("http://google.com/?q=1+2+3&b=456"), search_terms, in TEST_F()
1189 GURL("http://google.com/alt/?q=123#q=456"), search_terms, in TEST_F()
1194 GURL("http://google.com/alt/?a=012&q=123&b=456#f=789"), search_terms, in TEST_F()
1201 search_terms, search_terms_data_, &result)); in TEST_F()
[all …]
Dtemplate_url.cc179 const base::string16& search_terms) in SearchTermsArgs() argument
180 : search_terms(search_terms), in SearchTermsArgs()
471 base::string16* search_terms, in ExtractSearchTermsFromURL() argument
475 DCHECK(search_terms); in ExtractSearchTermsFromURL()
476 search_terms->clear(); in ExtractSearchTermsFromURL()
512 search_terms->clear(); in ExtractSearchTermsFromURL()
517 *search_terms = net::UnescapeAndDecodeUTF8URLComponent( in ExtractSearchTermsFromURL()
1078 base::UTF16ToCodepage(search_terms_args.search_terms, in HandleReplacements()
1303 base::string16* search_terms) { in ExtractSearchTermsFromURL() argument
1304 return FindSearchTermsInURL(url, search_terms_data, search_terms, NULL, NULL); in ExtractSearchTermsFromURL()
[all …]
Dtemplate_url.h72 explicit SearchTermsArgs(const base::string16& search_terms);
124 base::string16 search_terms; member
278 base::string16* search_terms,
646 base::string16* search_terms);
710 base::string16* search_terms,
Dtemplate_url_service.cc1732 base::string16 search_terms; in UpdateKeywordSearchTermsForURL() local
1734 &search_terms) && in UpdateKeywordSearchTermsForURL()
1735 !search_terms.empty()) { in UpdateKeywordSearchTermsForURL()
1744 details.url, (*i)->id(), search_terms); in UpdateKeywordSearchTermsForURL()
/external/chromium_org/chrome/browser/ui/toolbar/
Dtoolbar_model_impl.cc164 base::string16 search_terms(GetSearchTerms(false)); in GetText() local
165 if (!search_terms.empty()) in GetText()
166 return search_terms; in GetText()
371 base::string16 search_terms(chrome::GetSearchTerms(web_contents)); in GetSearchTerms() local
372 if (search_terms.empty()) { in GetSearchTerms()
387 return search_terms; in GetSearchTerms()
393 return search_terms; in GetSearchTerms()
399 base::string16() : search_terms; in GetSearchTerms()
/external/chromium_org/components/sessions/
Dserialized_navigation_entry_unittest.cc122 EXPECT_TRUE(navigation.search_terms().empty()); in TEST()
181 EXPECT_EQ(kSearchTerms, navigation.search_terms()); in TEST()
216 EXPECT_EQ(kSearchTerms, new_navigation.search_terms()); in TEST()
250 base::string16 search_terms; in TEST() local
251 new_navigation_entry->GetExtraData(kSearchTermsKey, &search_terms); in TEST()
252 EXPECT_EQ(kSearchTerms, search_terms); in TEST()
380 EXPECT_EQ(kSearchTerms, navigation.search_terms()); in TEST()
Dserialized_navigation_entry.h101 const base::string16& search_terms() const { return search_terms_; } in search_terms() function
Dserialized_navigation_entry.cc145 navigation.search_terms_ = base::UTF8ToUTF16(sync_data.search_terms()); in FromSyncData()
/external/chromium_org/chrome/browser/android/
Dtab_android.cc525 const base::string16& search_terms = in LoadUrl() local
527 if (!search_terms.empty() && in LoadUrl()
528 prerenderer->CanCommitQuery(web_contents_.get(), search_terms)) { in LoadUrl()
529 prerenderer->Commit(search_terms); in LoadUrl()
589 const base::string16 search_terms = in LoadUrl() local
593 if (!search_terms.empty() && search_tab_helper && in LoadUrl()
595 search_tab_helper->Submit(search_terms); in LoadUrl()
/external/chromium_org/chrome/browser/history/android/
Dandroid_provider_backend.cc550 SearchTerms search_terms; in UpdateSearchTerms() local
551 if (!GetSelectedSearchTerms(selection, selection_args, &search_terms)) in UpdateSearchTerms()
556 search_terms.size() > 1) in UpdateSearchTerms()
559 *update_count = search_terms.size(); in UpdateSearchTerms()
561 if (search_terms.empty()) in UpdateSearchTerms()
567 if (!history_db_->GetSearchTerm(search_terms[0], &search_term_row)) in UpdateSearchTerms()
577 if (!history_db_->DeleteKeywordSearchTerm(search_terms[0])) in UpdateSearchTerms()
591 for (SearchTerms::const_iterator i = search_terms.begin(); in UpdateSearchTerms()
592 i != search_terms.end(); ++i) { in UpdateSearchTerms()
/external/chromium_org/chrome/common/
Dlocalized_error.h48 std::string search_terms; member
Dlocalized_error.cc653 error_strings->SetString("searchTerms", params->search_terms); in GetStrings()
/external/chromium_org/components/omnibox/
Dautocomplete_match.cc366 base::string16 search_terms; in GURLToStrippedGURL() local
370 &search_terms)) { in GURLToStrippedGURL()
373 TemplateURLRef::SearchTermsArgs(search_terms), in GURLToStrippedGURL()
/external/chromium_org/chrome/renderer/net/
Dnet_error_helper_core.cc303 if (params->search_terms.empty()) { in CreateErrorPageParams()
305 params->search_terms = (*it)->url_correction; in CreateErrorPageParams()
Dnet_error_helper_core_unittest.cc285 EXPECT_EQ(kSuggestedSearchTerms, last_error_page_params()->search_terms); in ExpectDefaultNavigationCorrections()
1715 EXPECT_EQ("", last_error_page_params()->search_terms); in TEST_F()
1763 EXPECT_EQ(kSuggestedSearchTerms, last_error_page_params()->search_terms); in TEST_F()
/external/chromium_org/chrome/browser/autocomplete/
Dshortcuts_backend.cc154 match.search_terms_args->search_terms, match_type, in MatchToMatchCore()
/external/chromium_org/sync/protocol/
Dsession_specifics.proto124 optional string search_terms = 16; field
Dproto_value_conversions.cc210 SET_STR(search_terms); in TabNavigationToValue()

12