Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: chrome/browser/autocomplete/search_provider.h

Issue 13141002: Use Instant suggested match type for Instant temporary text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TODO Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/search_provider.h
diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h
index 16f669f3bc095ccbc56d6f9629670011c1f3eece..2ea78f4a8a18d16063e61bee38240eb05c3c71fa 100644
--- a/chrome/browser/autocomplete/search_provider.h
+++ b/chrome/browser/autocomplete/search_provider.h
@@ -73,6 +73,17 @@ class SearchProvider : public AutocompleteProvider,
const InstantSuggestion& suggestion);
void ClearInstantSuggestion();
+ // Sets |match| to be a search for |query|, using the default search provider
+ // or current keyword provider (based on |is_keyword|). |original_query| and
+ // |accepted_suggestion| are used to fill in AQS (Assisted Query Stats).
+ // Returns true if successful (i.e., the |match| was filled in correctly).
+ bool GetSearchWhatYouTypedMatch(const string16& query,
Peter Kasting 2013/04/12 00:29:01 I wonder if this should be static. Is it correct
sreeram 2013/04/12 22:36:18 The only new caller of this method is the one in o
Peter Kasting 2013/04/12 22:50:59 You do have to worry about pointers changing any t
+ const string16& original_query,
+ int relevance,
+ int accepted_suggestion,
+ bool is_keyword,
+ AutocompleteMatch* match);
+
// AutocompleteProvider:
virtual void Start(const AutocompleteInput& input,
bool minimal_changes) OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/autocomplete/search_provider.cc » ('j') | chrome/browser/autocomplete/search_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698