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_SHORTCUTS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "chrome/browser/autocomplete/shortcuts_backend.h" | |
14 #include "components/omnibox/autocomplete_provider.h" | 13 #include "components/omnibox/autocomplete_provider.h" |
| 14 #include "components/omnibox/shortcuts_backend.h" |
15 | 15 |
16 class Profile; | 16 class Profile; |
17 class ShortcutsProviderTest; | 17 class ShortcutsProviderTest; |
18 | 18 |
19 // Provider of recently autocompleted links. Provides autocomplete suggestions | 19 // Provider of recently autocompleted links. Provides autocomplete suggestions |
20 // from previously selected suggestions. The more often a user selects a | 20 // from previously selected suggestions. The more often a user selects a |
21 // suggestion for a given search term the higher will be that suggestion's | 21 // suggestion for a given search term the higher will be that suggestion's |
22 // ranking for future uses of that search term. | 22 // ranking for future uses of that search term. |
23 class ShortcutsProvider | 23 class ShortcutsProvider |
24 : public AutocompleteProvider, | 24 : public AutocompleteProvider, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // The default max relevance unless overridden by a field trial. | 103 // The default max relevance unless overridden by a field trial. |
104 static const int kShortcutsProviderDefaultMaxRelevance; | 104 static const int kShortcutsProviderDefaultMaxRelevance; |
105 | 105 |
106 Profile* profile_; | 106 Profile* profile_; |
107 std::string languages_; | 107 std::string languages_; |
108 bool initialized_; | 108 bool initialized_; |
109 }; | 109 }; |
110 | 110 |
111 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ | 111 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ |
OLD | NEW |