| 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 COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_PROVIDER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_PROVIDER_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_PROVIDER_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 ShortcutsBackend* backend); | 97 ShortcutsBackend* backend); |
| 98 | 98 |
| 99 int CalculateScore(const base::string16& terms, | 99 int CalculateScore(const base::string16& terms, |
| 100 const ShortcutsDatabase::Shortcut& shortcut, | 100 const ShortcutsDatabase::Shortcut& shortcut, |
| 101 int max_relevance); | 101 int max_relevance); |
| 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 AutocompleteProviderClient* client_; | 106 AutocompleteProviderClient* client_; |
| 107 std::string languages_; | |
| 108 bool initialized_; | 107 bool initialized_; |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 #endif // COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_PROVIDER_H_ | 110 #endif // COMPONENTS_OMNIBOX_BROWSER_SHORTCUTS_PROVIDER_H_ |
| OLD | NEW |