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. To enable | 7 // and generates search query suggestions based on the current URL. |
8 // this provider, point --experimental-zero-suggest-url-prefix at an | |
9 // appropriate suggestion service. | |
10 // | |
11 // HUGE DISCLAIMER: This is just here for experimenting and will probably be | |
12 // deleted entirely as we revise how suggestions work with the omnibox. | |
13 | 8 |
14 #ifndef CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ | 9 #ifndef CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ |
15 #define CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ | 10 #define CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ |
16 | 11 |
17 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
18 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
19 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
20 #include "chrome/browser/autocomplete/base_search_provider.h" | 15 #include "chrome/browser/autocomplete/base_search_provider.h" |
21 #include "chrome/browser/autocomplete/search_provider.h" | 16 #include "chrome/browser/autocomplete/search_provider.h" |
22 #include "chrome/browser/history/history_types.h" | 17 #include "chrome/browser/history/history_types.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 155 |
161 history::MostVisitedURLList most_visited_urls_; | 156 history::MostVisitedURLList most_visited_urls_; |
162 | 157 |
163 // For callbacks that may be run after destruction. | 158 // For callbacks that may be run after destruction. |
164 base::WeakPtrFactory<ZeroSuggestProvider> weak_ptr_factory_; | 159 base::WeakPtrFactory<ZeroSuggestProvider> weak_ptr_factory_; |
165 | 160 |
166 DISALLOW_COPY_AND_ASSIGN(ZeroSuggestProvider); | 161 DISALLOW_COPY_AND_ASSIGN(ZeroSuggestProvider); |
167 }; | 162 }; |
168 | 163 |
169 #endif // CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ | 164 #endif // CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ |
OLD | NEW |