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/autocomplete_provider.h" | 13 #include "chrome/browser/autocomplete/autocomplete_provider.h" |
14 #include "chrome/browser/autocomplete/shortcuts_backend.h" | 14 #include "chrome/browser/autocomplete/shortcuts_backend.h" |
15 #include "chrome/browser/autocomplete/url_prefix.h" | |
16 | 15 |
17 class Profile; | 16 class Profile; |
18 class ShortcutsProviderTest; | 17 class ShortcutsProviderTest; |
19 | 18 |
20 // Provider of recently autocompleted links. Provides autocomplete suggestions | 19 // Provider of recently autocompleted links. Provides autocomplete suggestions |
21 // from previously selected suggestions. The more often a user selects a | 20 // from previously selected suggestions. The more often a user selects a |
22 // 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 |
23 // ranking for future uses of that search term. | 22 // ranking for future uses of that search term. |
24 class ShortcutsProvider | 23 class ShortcutsProvider |
25 : public AutocompleteProvider, | 24 : public AutocompleteProvider, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 int max_relevance); | 103 int max_relevance); |
105 | 104 |
106 // The default max relevance unless overridden by a field trial. | 105 // The default max relevance unless overridden by a field trial. |
107 static const int kShortcutsProviderDefaultMaxRelevance; | 106 static const int kShortcutsProviderDefaultMaxRelevance; |
108 | 107 |
109 std::string languages_; | 108 std::string languages_; |
110 bool initialized_; | 109 bool initialized_; |
111 }; | 110 }; |
112 | 111 |
113 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ | 112 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ |
OLD | NEW |