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 // This file contains the zero-suggest autocomplete provider. This experimental | 5 // This file contains the zero-suggest autocomplete provider. This experimental |
6 // provider is invoked when the user focuses in the omnibox prior to editing, | 6 // provider is invoked when the user focuses in the omnibox prior to editing, |
7 // and generates search query suggestions based on the current URL. | 7 // and generates search query suggestions based on the current URL. |
8 | 8 |
9 #ifndef COMPONENTS_OMNIBOX_BROWSER_ZERO_SUGGEST_PROVIDER_H_ | 9 #ifndef COMPONENTS_OMNIBOX_BROWSER_ZERO_SUGGEST_PROVIDER_H_ |
10 #define COMPONENTS_OMNIBOX_BROWSER_ZERO_SUGGEST_PROVIDER_H_ | 10 #define COMPONENTS_OMNIBOX_BROWSER_ZERO_SUGGEST_PROVIDER_H_ |
11 | 11 |
12 #include <memory> | 12 #include <memory> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "components/history/core/browser/history_types.h" | 16 #include "components/history/core/browser/history_types.h" |
17 #include "components/metrics/proto/omnibox_event.pb.h" | 17 #include "components/metrics/proto/omnibox_event.pb.h" |
18 #include "components/omnibox/browser/base_search_provider.h" | 18 #include "components/omnibox/browser/base_search_provider.h" |
19 #include "components/omnibox/browser/search_provider.h" | 19 #include "components/omnibox/browser/search_provider.h" |
20 #include "net/url_request/url_fetcher_delegate.h" | 20 #include "net/url_request/url_fetcher_delegate.h" |
21 | 21 |
22 class AutocompleteProviderListener; | 22 class AutocompleteProviderListener; |
23 class HistoryURLProvider; | 23 class HistoryURLProvider; |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class ListValue; | |
27 class Value; | 26 class Value; |
28 } | 27 } |
29 | 28 |
30 namespace net { | 29 namespace net { |
31 class URLFetcher; | 30 class URLFetcher; |
32 } | 31 } |
33 | 32 |
34 namespace user_prefs { | 33 namespace user_prefs { |
35 class PrefRegistrySyncable; | 34 class PrefRegistrySyncable; |
36 } | 35 } |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // Whether we are waiting for a most visited visited urls callback to run. | 159 // Whether we are waiting for a most visited visited urls callback to run. |
161 bool waiting_for_most_visited_urls_request_; | 160 bool waiting_for_most_visited_urls_request_; |
162 | 161 |
163 // For callbacks that may be run after destruction. | 162 // For callbacks that may be run after destruction. |
164 base::WeakPtrFactory<ZeroSuggestProvider> weak_ptr_factory_; | 163 base::WeakPtrFactory<ZeroSuggestProvider> weak_ptr_factory_; |
165 | 164 |
166 DISALLOW_COPY_AND_ASSIGN(ZeroSuggestProvider); | 165 DISALLOW_COPY_AND_ASSIGN(ZeroSuggestProvider); |
167 }; | 166 }; |
168 | 167 |
169 #endif // COMPONENTS_OMNIBOX_BROWSER_ZERO_SUGGEST_PROVIDER_H_ | 168 #endif // COMPONENTS_OMNIBOX_BROWSER_ZERO_SUGGEST_PROVIDER_H_ |
OLD | NEW |