| 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 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 HistoryResults raw_keyword_history_results_; | 371 HistoryResults raw_keyword_history_results_; |
| 372 HistoryResults raw_default_history_results_; | 372 HistoryResults raw_default_history_results_; |
| 373 | 373 |
| 374 // Scored searches in the user's history - based on |keyword_history_results_| | 374 // Scored searches in the user's history - based on |keyword_history_results_| |
| 375 // or |default_history_results_| as appropriate. | 375 // or |default_history_results_| as appropriate. |
| 376 SearchSuggestionParser::SuggestResults transformed_keyword_history_results_; | 376 SearchSuggestionParser::SuggestResults transformed_keyword_history_results_; |
| 377 SearchSuggestionParser::SuggestResults transformed_default_history_results_; | 377 SearchSuggestionParser::SuggestResults transformed_default_history_results_; |
| 378 | 378 |
| 379 // A timer to start a query to the suggest server after the user has stopped | 379 // A timer to start a query to the suggest server after the user has stopped |
| 380 // typing for long enough. | 380 // typing for long enough. |
| 381 base::OneShotTimer<SearchProvider> timer_; | 381 base::OneShotTimer timer_; |
| 382 | 382 |
| 383 // The time at which we sent a query to the suggest server. | 383 // The time at which we sent a query to the suggest server. |
| 384 base::TimeTicks time_suggest_request_sent_; | 384 base::TimeTicks time_suggest_request_sent_; |
| 385 | 385 |
| 386 // Fetchers used to retrieve results for the keyword and default providers. | 386 // Fetchers used to retrieve results for the keyword and default providers. |
| 387 // After a fetcher's results are returned, it gets reset, so a non-null | 387 // After a fetcher's results are returned, it gets reset, so a non-null |
| 388 // fetcher indicates that fetcher is still in flight. | 388 // fetcher indicates that fetcher is still in flight. |
| 389 scoped_ptr<net::URLFetcher> keyword_fetcher_; | 389 scoped_ptr<net::URLFetcher> keyword_fetcher_; |
| 390 scoped_ptr<net::URLFetcher> default_fetcher_; | 390 scoped_ptr<net::URLFetcher> default_fetcher_; |
| 391 | 391 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 403 base::TimeTicks token_expiration_time_; | 403 base::TimeTicks token_expiration_time_; |
| 404 | 404 |
| 405 // Answers prefetch management. | 405 // Answers prefetch management. |
| 406 AnswersCache answers_cache_; // Cache for last answers seen. | 406 AnswersCache answers_cache_; // Cache for last answers seen. |
| 407 AnswersQueryData prefetch_data_; // Data to use for query prefetching. | 407 AnswersQueryData prefetch_data_; // Data to use for query prefetching. |
| 408 | 408 |
| 409 DISALLOW_COPY_AND_ASSIGN(SearchProvider); | 409 DISALLOW_COPY_AND_ASSIGN(SearchProvider); |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 #endif // COMPONENTS_OMNIBOX_BROWSER_SEARCH_PROVIDER_H_ | 412 #endif // COMPONENTS_OMNIBOX_BROWSER_SEARCH_PROVIDER_H_ |
| OLD | NEW |