| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 // Result: | 166 // Result: |
| 167 int CalculateRelevance(const AutocompleteInput& input, | 167 int CalculateRelevance(const AutocompleteInput& input, |
| 168 bool keyword_provider_requested) const override; | 168 bool keyword_provider_requested) const override; |
| 169 | 169 |
| 170 private: | 170 private: |
| 171 // The search terms to be used for this suggestion. | 171 // The search terms to be used for this suggestion. |
| 172 base::string16 suggestion_; | 172 base::string16 suggestion_; |
| 173 | 173 |
| 174 // The contents to be displayed as prefix of match contents. | 174 // The contents to be displayed as prefix of match contents. |
| 175 // Used for postfix suggestions to display a leading ellipsis (or some | 175 // Used for tail suggestions to display a leading ellipsis (or some |
| 176 // equivalent character) to indicate omitted text. | 176 // equivalent character) to indicate omitted text. |
| 177 // Only used to pass this information to about:omnibox's "Additional Info". | 177 // Only used to pass this information to about:omnibox's "Additional Info". |
| 178 base::string16 match_contents_prefix_; | 178 base::string16 match_contents_prefix_; |
| 179 | 179 |
| 180 // Optional annotation for the |match_contents_| for disambiguation. | 180 // Optional annotation for the |match_contents_| for disambiguation. |
| 181 // This may be displayed in the autocomplete match contents, but is defined | 181 // This may be displayed in the autocomplete match contents, but is defined |
| 182 // separately to facilitate different formatting. | 182 // separately to facilitate different formatting. |
| 183 base::string16 annotation_; | 183 base::string16 annotation_; |
| 184 | 184 |
| 185 // Optional additional parameters to be added to the search URL. | 185 // Optional additional parameters to be added to the search URL. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 const AutocompleteSchemeClassifier& scheme_classifier, | 307 const AutocompleteSchemeClassifier& scheme_classifier, |
| 308 int default_result_relevance, | 308 int default_result_relevance, |
| 309 bool is_keyword_result, | 309 bool is_keyword_result, |
| 310 Results* results); | 310 Results* results); |
| 311 | 311 |
| 312 private: | 312 private: |
| 313 DISALLOW_COPY_AND_ASSIGN(SearchSuggestionParser); | 313 DISALLOW_COPY_AND_ASSIGN(SearchSuggestionParser); |
| 314 }; | 314 }; |
| 315 | 315 |
| 316 #endif // COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_ | 316 #endif // COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_ |
| OLD | NEW |