diff options
Diffstat (limited to 'chrome/browser/autocomplete/history_provider.h')
-rw-r--r-- | chrome/browser/autocomplete/history_provider.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/history_provider.h b/chrome/browser/autocomplete/history_provider.h index 6be0e2b..9a72b86 100644 --- a/chrome/browser/autocomplete/history_provider.h +++ b/chrome/browser/autocomplete/history_provider.h @@ -7,6 +7,7 @@ #include "base/compiler_specific.h" #include "chrome/browser/autocomplete/autocomplete_provider.h" +#include "chrome/browser/history/in_memory_url_index_types.h" class AutocompleteInput; struct AutocompleteMatch; @@ -53,6 +54,13 @@ class HistoryProvider : public AutocompleteProvider { // |input.prevent_inline_autocomplete()| is true or the input text contains // trailing whitespace. bool PreventInlineAutocomplete(const AutocompleteInput& input); + + // Fill and return an ACMatchClassifications structure given the |matches| + // to highlight. + static ACMatchClassifications SpansFromTermMatch( + const history::TermMatches& matches, + size_t text_length, + bool is_url); }; #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ |