OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 Search autocomplete provider. This provider is | 5 // This file contains the Search autocomplete provider. This provider is |
6 // responsible for all non-keyword autocomplete entries that start with | 6 // responsible for all non-keyword autocomplete entries that start with |
7 // "Search <engine> for ...", including searching for the current input string, | 7 // "Search <engine> for ...", including searching for the current input string, |
8 // search history, and search suggestions. An instance of it gets created and | 8 // search history, and search suggestions. An instance of it gets created and |
9 // managed by the autocomplete controller. | 9 // managed by the autocomplete controller. |
10 // | 10 // |
11 // For more information on the autocomplete system in general, including how | 11 // For more information on the autocomplete system in general, including how |
12 // the autocomplete controller and autocomplete providers work, see | 12 // the autocomplete controller and autocomplete providers work, see |
13 // chrome/browser/autocomplete.h. | 13 // chrome/browser/autocomplete.h. |
14 | 14 |
15 #ifndef CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ | 15 #ifndef CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ |
16 #define CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ | 16 #define CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ |
17 | 17 |
18 #include "chrome/browser/autocomplete/autocomplete.h" | 18 #include "chrome/browser/autocomplete/autocomplete.h" |
19 #include "chrome/browser/history/history.h" | 19 #include "chrome/browser/history/history.h" |
| 20 #include "chrome/browser/net/url_fetcher.h" |
20 #include "chrome/browser/search_engines/template_url.h" | 21 #include "chrome/browser/search_engines/template_url.h" |
21 #include "chrome/browser/url_fetcher.h" | |
22 | 22 |
23 class Profile; | 23 class Profile; |
24 class Value; | 24 class Value; |
25 | 25 |
26 // Autocomplete provider for searches and suggestions from a search engine. | 26 // Autocomplete provider for searches and suggestions from a search engine. |
27 // | 27 // |
28 // After construction, the autocomplete controller repeatedly calls Start() | 28 // After construction, the autocomplete controller repeatedly calls Start() |
29 // with some user input, each time expecting to receive a small set of the best | 29 // with some user input, each time expecting to receive a small set of the best |
30 // matches (either synchronously or asynchronously). | 30 // matches (either synchronously or asynchronously). |
31 // | 31 // |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // Navigational suggestions returned by the server. | 186 // Navigational suggestions returned by the server. |
187 NavigationResults navigation_results_; | 187 NavigationResults navigation_results_; |
188 | 188 |
189 // Whether suggest_results_ is valid. | 189 // Whether suggest_results_ is valid. |
190 bool have_suggest_results_; | 190 bool have_suggest_results_; |
191 | 191 |
192 DISALLOW_EVIL_CONSTRUCTORS(SearchProvider); | 192 DISALLOW_EVIL_CONSTRUCTORS(SearchProvider); |
193 }; | 193 }; |
194 | 194 |
195 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ | 195 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ |
OLD | NEW |