| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <map> | 18 #include <map> |
| 19 #include <string> | 19 #include <string> |
| 20 #include <vector> | 20 #include <vector> |
| 21 | 21 |
| 22 #include "base/scoped_ptr.h" |
| 22 #include "chrome/browser/autocomplete/autocomplete.h" | 23 #include "chrome/browser/autocomplete/autocomplete.h" |
| 23 #include "chrome/browser/cancelable_request.h" | 24 #include "chrome/browser/cancelable_request.h" |
| 24 #include "chrome/browser/history/history_types.h" | 25 #include "chrome/browser/history/history_types.h" |
| 25 #include "chrome/browser/search_engines/template_url.h" | 26 #include "chrome/browser/search_engines/template_url.h" |
| 26 #include "chrome/common/net/url_fetcher.h" | 27 #include "chrome/common/net/url_fetcher.h" |
| 27 | 28 |
| 28 class Profile; | 29 class Profile; |
| 29 class Value; | 30 class Value; |
| 30 | 31 |
| 31 // Autocomplete provider for searches and suggestions from a search engine. | 32 // Autocomplete provider for searches and suggestions from a search engine. |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 NavigationResults keyword_navigation_results_; | 319 NavigationResults keyword_navigation_results_; |
| 319 NavigationResults default_navigation_results_; | 320 NavigationResults default_navigation_results_; |
| 320 | 321 |
| 321 // Whether suggest_results_ is valid. | 322 // Whether suggest_results_ is valid. |
| 322 bool have_suggest_results_; | 323 bool have_suggest_results_; |
| 323 | 324 |
| 324 DISALLOW_COPY_AND_ASSIGN(SearchProvider); | 325 DISALLOW_COPY_AND_ASSIGN(SearchProvider); |
| 325 }; | 326 }; |
| 326 | 327 |
| 327 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ | 328 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ |
| OLD | NEW |