Chromium Code Reviews| Index: components/omnibox/browser/search_suggestion_parser.h |
| diff --git a/components/omnibox/browser/search_suggestion_parser.h b/components/omnibox/browser/search_suggestion_parser.h |
| index 9a1ddd49ba43f86bf67ebe083cfad6a6ae62872e..0880a1c892487413b30ea09007701b844b05f587 100644 |
| --- a/components/omnibox/browser/search_suggestion_parser.h |
| +++ b/components/omnibox/browser/search_suggestion_parser.h |
| @@ -42,6 +42,7 @@ class SearchSuggestionParser { |
| int relevance, |
| bool relevance_from_server, |
| AutocompleteMatchType::Type type, |
| + int subtype_identifier, |
| const std::string& deletion_url); |
| Result(const Result& other); |
| virtual ~Result(); |
| @@ -54,6 +55,7 @@ class SearchSuggestionParser { |
| } |
| AutocompleteMatchType::Type type() const { return type_; } |
| + int subtype_identifier() const { return subtype_identifier_; } |
| int relevance() const { return relevance_; } |
| void set_relevance(int relevance) { relevance_ = relevance; } |
| bool received_after_last_keystroke() const { |
| @@ -88,6 +90,13 @@ class SearchSuggestionParser { |
| AutocompleteMatchType::Type type_; |
| + // Used to identify the specific source / type for suggestions by the |
| + // suggest server. The meaning of individual values is determined by the |
|
Mark P
2017/03/31 20:50:25
ditto comment in other file
gcomanici
2017/04/01 16:01:52
Done.
|
| + // provider of each suggestion type and is different for every suggestion |
| + // type. Contact service providers for more details. |
| + // The identifier 0 is reserved for cases where this specific type is unset. |
| + int subtype_identifier_; |
| + |
| // The relevance score. |
| int relevance_; |
| @@ -114,6 +123,7 @@ class SearchSuggestionParser { |
| public: |
| SuggestResult(const base::string16& suggestion, |
| AutocompleteMatchType::Type type, |
| + int subtype_identifier, |
| const base::string16& match_contents, |
| const base::string16& match_contents_prefix, |
| const base::string16& annotation, |
| @@ -196,6 +206,7 @@ class SearchSuggestionParser { |
| NavigationResult(const AutocompleteSchemeClassifier& scheme_classifier, |
| const GURL& url, |
| AutocompleteMatchType::Type type, |
| + int subtype_identifier, |
| const base::string16& description, |
| const std::string& deletion_url, |
| bool from_keyword_provider, |