| 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_QUICK_PROVIDER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_HISTORY_QUICK_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_ | 6 #define COMPONENTS_OMNIBOX_HISTORY_QUICK_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/autocomplete/in_memory_url_index.h" | |
| 13 #include "components/history/core/browser/history_types.h" | 12 #include "components/history/core/browser/history_types.h" |
| 14 #include "components/omnibox/autocomplete_input.h" | 13 #include "components/omnibox/autocomplete_input.h" |
| 15 #include "components/omnibox/autocomplete_match.h" | 14 #include "components/omnibox/autocomplete_match.h" |
| 16 #include "components/omnibox/history_provider.h" | 15 #include "components/omnibox/history_provider.h" |
| 16 #include "components/omnibox/in_memory_url_index.h" |
| 17 | 17 |
| 18 struct ScoredHistoryMatch; | 18 struct ScoredHistoryMatch; |
| 19 | 19 |
| 20 // This class is an autocomplete provider (a pseudo-internal component of | 20 // This class is an autocomplete provider (a pseudo-internal component of |
| 21 // the history system) which quickly (and synchronously) provides matching | 21 // the history system) which quickly (and synchronously) provides matching |
| 22 // results from recently or frequently visited sites in the profile's | 22 // results from recently or frequently visited sites in the profile's |
| 23 // history. | 23 // history. |
| 24 class HistoryQuickProvider : public HistoryProvider { | 24 class HistoryQuickProvider : public HistoryProvider { |
| 25 public: | 25 public: |
| 26 HistoryQuickProvider(AutocompleteProviderClient* client, | 26 HistoryQuickProvider(AutocompleteProviderClient* client, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 57 AutocompleteInput autocomplete_input_; | 57 AutocompleteInput autocomplete_input_; |
| 58 std::string languages_; | 58 std::string languages_; |
| 59 InMemoryURLIndex* in_memory_url_index_; // Not owned by this class. | 59 InMemoryURLIndex* in_memory_url_index_; // Not owned by this class. |
| 60 | 60 |
| 61 // This provider is disabled when true. | 61 // This provider is disabled when true. |
| 62 static bool disabled_; | 62 static bool disabled_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(HistoryQuickProvider); | 64 DISALLOW_COPY_AND_ASSIGN(HistoryQuickProvider); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_ | 67 #endif // COMPONENTS_OMNIBOX_HISTORY_QUICK_PROVIDER_H_ |
| OLD | NEW |