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