| 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/basictypes.h" | |
| 11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 12 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/macros.h" |
| 13 #include "components/history/core/browser/history_types.h" | 13 #include "components/history/core/browser/history_types.h" |
| 14 #include "components/omnibox/browser/autocomplete_input.h" | 14 #include "components/omnibox/browser/autocomplete_input.h" |
| 15 #include "components/omnibox/browser/autocomplete_match.h" | 15 #include "components/omnibox/browser/autocomplete_match.h" |
| 16 #include "components/omnibox/browser/history_provider.h" | 16 #include "components/omnibox/browser/history_provider.h" |
| 17 #include "components/omnibox/browser/in_memory_url_index.h" | 17 #include "components/omnibox/browser/in_memory_url_index.h" |
| 18 | 18 |
| 19 struct ScoredHistoryMatch; | 19 struct ScoredHistoryMatch; |
| 20 | 20 |
| 21 // This class is an autocomplete provider (a pseudo-internal component of | 21 // This class is an autocomplete provider (a pseudo-internal component of |
| 22 // the history system) which quickly (and synchronously) provides matching | 22 // the history system) which quickly (and synchronously) provides matching |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 std::string languages_; | 56 std::string languages_; |
| 57 InMemoryURLIndex* in_memory_url_index_; // Not owned by this class. | 57 InMemoryURLIndex* in_memory_url_index_; // Not owned by this class. |
| 58 | 58 |
| 59 // This provider is disabled when true. | 59 // This provider is disabled when true. |
| 60 static bool disabled_; | 60 static bool disabled_; |
| 61 | 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(HistoryQuickProvider); | 62 DISALLOW_COPY_AND_ASSIGN(HistoryQuickProvider); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 #endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_QUICK_PROVIDER_H_ | 65 #endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_QUICK_PROVIDER_H_ |
| OLD | NEW |