OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/autocomplete/in_memory_url_index_types.h" | |
10 #include "components/omnibox/autocomplete_provider.h" | 9 #include "components/omnibox/autocomplete_provider.h" |
| 10 #include "components/omnibox/in_memory_url_index_types.h" |
11 | 11 |
12 class AutocompleteInput; | 12 class AutocompleteInput; |
13 class Profile; | 13 class Profile; |
14 struct AutocompleteMatch; | 14 struct AutocompleteMatch; |
15 | 15 |
16 // This class is a base class for the history autocomplete providers and | 16 // This class is a base class for the history autocomplete providers and |
17 // provides functions useful to all derived classes. | 17 // provides functions useful to all derived classes. |
18 class HistoryProvider : public AutocompleteProvider { | 18 class HistoryProvider : public AutocompleteProvider { |
19 public: | 19 public: |
20 void DeleteMatch(const AutocompleteMatch& match) override; | 20 void DeleteMatch(const AutocompleteMatch& match) override; |
(...skipping 14 matching lines...) Expand all Loading... |
35 // Fill and return an ACMatchClassifications structure given the |matches| | 35 // Fill and return an ACMatchClassifications structure given the |matches| |
36 // to highlight. | 36 // to highlight. |
37 static ACMatchClassifications SpansFromTermMatch(const TermMatches& matches, | 37 static ACMatchClassifications SpansFromTermMatch(const TermMatches& matches, |
38 size_t text_length, | 38 size_t text_length, |
39 bool is_url); | 39 bool is_url); |
40 | 40 |
41 Profile* profile_; | 41 Profile* profile_; |
42 }; | 42 }; |
43 | 43 |
44 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ | 44 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ |
OLD | NEW |