| 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_HISTORY_QUICK_PROVIDER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_HISTORY_QUICK_PROVIDER_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_HISTORY_QUICK_PROVIDER_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_HISTORY_QUICK_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Performs the autocomplete matching and scoring. | 47 // Performs the autocomplete matching and scoring. |
| 48 void DoAutocomplete(); | 48 void DoAutocomplete(); |
| 49 | 49 |
| 50 // Creates an AutocompleteMatch from |history_match|, assigning it | 50 // Creates an AutocompleteMatch from |history_match|, assigning it |
| 51 // the score |score|. | 51 // the score |score|. |
| 52 AutocompleteMatch QuickMatchToACMatch(const ScoredHistoryMatch& history_match, | 52 AutocompleteMatch QuickMatchToACMatch(const ScoredHistoryMatch& history_match, |
| 53 int score); | 53 int score); |
| 54 | 54 |
| 55 AutocompleteInput autocomplete_input_; | 55 AutocompleteInput autocomplete_input_; |
| 56 std::string languages_; | |
| 57 InMemoryURLIndex* in_memory_url_index_; // Not owned by this class. | 56 InMemoryURLIndex* in_memory_url_index_; // Not owned by this class. |
| 58 | 57 |
| 59 // This provider is disabled when true. | 58 // This provider is disabled when true. |
| 60 static bool disabled_; | 59 static bool disabled_; |
| 61 | 60 |
| 62 DISALLOW_COPY_AND_ASSIGN(HistoryQuickProvider); | 61 DISALLOW_COPY_AND_ASSIGN(HistoryQuickProvider); |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 #endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_QUICK_PROVIDER_H_ | 64 #endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_QUICK_PROVIDER_H_ |
| OLD | NEW |