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

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

Issue 58003005: Modify Entity Suggestion support and Add Profile Suggest support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed classifications from server Created 7 years 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 adf3004a33370adfe06690496b9156627a991a63..928c510a4cca7b4ea1430e136a56d0d0b2024fab 100644
--- a/chrome/browser/autocomplete/search_provider.h
+++ b/chrome/browser/autocomplete/search_provider.h
@@ -240,6 +240,7 @@ class SearchProvider : public AutocompleteProvider,
class SuggestResult : public Result {
public:
SuggestResult(const base::string16& suggestion,
+ AutocompleteMatchType::Type type,
const base::string16& match_contents,
const base::string16& annotation,
const std::string& suggest_query_params,
@@ -251,6 +252,7 @@ class SearchProvider : public AutocompleteProvider,
virtual ~SuggestResult();
const base::string16& suggestion() const { return suggestion_; }
+ AutocompleteMatchType::Type type() const { return type_; }
const base::string16& match_contents() const { return match_contents_; }
const base::string16& annotation() const { return annotation_; }
const std::string& suggest_query_params() const {
@@ -269,6 +271,8 @@ class SearchProvider : public AutocompleteProvider,
// The search terms to be used for this suggestion.
base::string16 suggestion_;
+ AutocompleteMatchType::Type type_;
+
// The contents to be displayed in the autocomplete match.
base::string16 match_contents_;

Powered by Google App Engine
This is Rietveld 408576698