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 CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ |
12 #define CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ | 12 #define CHROME_BROWSER_AUTOCOMPLETE_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/base_search_provider.h" | 19 #include "chrome/browser/autocomplete/base_search_provider.h" |
20 #include "chrome/browser/history/history_types.h" | 20 #include "chrome/browser/history/history_types.h" |
21 #include "chrome/browser/search_engines/template_url.h" | 21 #include "chrome/browser/search_engines/template_url.h" |
22 #include "components/metrics/proto/omnibox_input_type.pb.h" | |
23 | 22 |
24 class Profile; | 23 class Profile; |
25 class SearchProviderTest; | 24 class SearchProviderTest; |
26 class TemplateURLService; | 25 class TemplateURLService; |
27 | 26 |
28 namespace net { | 27 namespace net { |
29 class URLFetcher; | 28 class URLFetcher; |
30 } | 29 } |
31 | 30 |
32 // Autocomplete provider for searches and suggestions from a search engine. | 31 // Autocomplete provider for searches and suggestions from a search engine. |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 GURL current_page_url_; | 310 GURL current_page_url_; |
312 | 311 |
313 // Session token management. | 312 // Session token management. |
314 std::string current_token_; | 313 std::string current_token_; |
315 base::TimeTicks token_expiration_time_; | 314 base::TimeTicks token_expiration_time_; |
316 | 315 |
317 DISALLOW_COPY_AND_ASSIGN(SearchProvider); | 316 DISALLOW_COPY_AND_ASSIGN(SearchProvider); |
318 }; | 317 }; |
319 | 318 |
320 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ | 319 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ |
OLD | NEW |