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 COMPONENTS_OMNIBOX_BROWSER_SEARCH_PROVIDER_H_ | 11 #ifndef COMPONENTS_OMNIBOX_BROWSER_SEARCH_PROVIDER_H_ |
12 #define COMPONENTS_OMNIBOX_BROWSER_SEARCH_PROVIDER_H_ | 12 #define COMPONENTS_OMNIBOX_BROWSER_SEARCH_PROVIDER_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 19 #include "base/gtest_prod_util.h" |
19 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
20 #include "base/time/time.h" | 21 #include "base/time/time.h" |
21 #include "base/timer/timer.h" | 22 #include "base/timer/timer.h" |
22 #include "components/metrics/proto/omnibox_input_type.pb.h" | 23 #include "components/metrics/proto/omnibox_input_type.pb.h" |
23 #include "components/omnibox/browser/answers_cache.h" | 24 #include "components/omnibox/browser/answers_cache.h" |
24 #include "components/omnibox/browser/base_search_provider.h" | 25 #include "components/omnibox/browser/base_search_provider.h" |
25 #include "components/search_engines/template_url.h" | 26 #include "components/search_engines/template_url.h" |
26 #include "components/search_engines/template_url_service_observer.h" | 27 #include "components/search_engines/template_url_service_observer.h" |
27 #include "net/url_request/url_fetcher_delegate.h" | 28 #include "net/url_request/url_fetcher_delegate.h" |
28 | 29 |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 base::TimeTicks token_expiration_time_; | 404 base::TimeTicks token_expiration_time_; |
404 | 405 |
405 // Answers prefetch management. | 406 // Answers prefetch management. |
406 AnswersCache answers_cache_; // Cache for last answers seen. | 407 AnswersCache answers_cache_; // Cache for last answers seen. |
407 AnswersQueryData prefetch_data_; // Data to use for query prefetching. | 408 AnswersQueryData prefetch_data_; // Data to use for query prefetching. |
408 | 409 |
409 DISALLOW_COPY_AND_ASSIGN(SearchProvider); | 410 DISALLOW_COPY_AND_ASSIGN(SearchProvider); |
410 }; | 411 }; |
411 | 412 |
412 #endif // COMPONENTS_OMNIBOX_BROWSER_SEARCH_PROVIDER_H_ | 413 #endif // COMPONENTS_OMNIBOX_BROWSER_SEARCH_PROVIDER_H_ |
OLD | NEW |