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 Search autocomplete provider. This provider is | 5 // This file contains the Search autocomplete provider. This provider is |
6 // responsible for all autocomplete entries that start with "Search <engine> | 6 // responsible for all autocomplete entries that start with "Search <engine> |
7 // for ...", including searching for the current input string, search | 7 // for ...", including searching for the current input string, search |
8 // history, and search suggestions. An instance of it gets created and | 8 // 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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ | 11 #ifndef COMPONENTS_OMNIBOX_SEARCH_PROVIDER_H_ |
12 #define CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ | 12 #define COMPONENTS_OMNIBOX_SEARCH_PROVIDER_H_ |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
19 #include "chrome/browser/autocomplete/answers_cache.h" | |
20 #include "chrome/browser/autocomplete/base_search_provider.h" | |
21 #include "components/metrics/proto/omnibox_input_type.pb.h" | 19 #include "components/metrics/proto/omnibox_input_type.pb.h" |
| 20 #include "components/omnibox/answers_cache.h" |
| 21 #include "components/omnibox/base_search_provider.h" |
22 #include "components/search_engines/template_url.h" | 22 #include "components/search_engines/template_url.h" |
23 #include "net/url_request/url_fetcher_delegate.h" | 23 #include "net/url_request/url_fetcher_delegate.h" |
24 | 24 |
25 class AutocompleteProviderDelegate; | 25 class AutocompleteProviderDelegate; |
26 class AutocompleteProviderListener; | 26 class AutocompleteProviderListener; |
27 class AutocompleteResult; | 27 class AutocompleteResult; |
28 class SearchProviderTest; | 28 class SearchProviderTest; |
29 class TemplateURLService; | 29 class TemplateURLService; |
30 | 30 |
31 namespace history { | 31 namespace history { |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 std::string current_token_; | 357 std::string current_token_; |
358 base::TimeTicks token_expiration_time_; | 358 base::TimeTicks token_expiration_time_; |
359 | 359 |
360 // Answers prefetch management. | 360 // Answers prefetch management. |
361 AnswersCache answers_cache_; // Cache for last answers seen. | 361 AnswersCache answers_cache_; // Cache for last answers seen. |
362 AnswersQueryData prefetch_data_; // Data to use for query prefetching. | 362 AnswersQueryData prefetch_data_; // Data to use for query prefetching. |
363 | 363 |
364 DISALLOW_COPY_AND_ASSIGN(SearchProvider); | 364 DISALLOW_COPY_AND_ASSIGN(SearchProvider); |
365 }; | 365 }; |
366 | 366 |
367 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ | 367 #endif // COMPONENTS_OMNIBOX_SEARCH_PROVIDER_H_ |
OLD | NEW |