| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, NavigationInline); | 90 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, NavigationInline); |
| 91 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, NavigationInlineDomainClassify); | 91 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, NavigationInlineDomainClassify); |
| 92 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, NavigationInlineSchemeSubstring); | 92 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, NavigationInlineSchemeSubstring); |
| 93 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, SuggestRelevanceExperiment); | 93 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, SuggestRelevanceExperiment); |
| 94 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, TestDeleteMatch); | 94 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, TestDeleteMatch); |
| 95 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, SuggestQueryUsesToken); | 95 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, SuggestQueryUsesToken); |
| 96 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, SessionToken); | 96 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, SessionToken); |
| 97 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, AnswersCache); | 97 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, AnswersCache); |
| 98 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, RemoveExtraAnswers); | 98 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, RemoveExtraAnswers); |
| 99 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, DoesNotProvideOnFocus); | 99 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, DoesNotProvideOnFocus); |
| 100 FRIEND_TEST_ALL_PREFIXES(SearchProviderTest, SendsWarmUpRequestOnFocus); |
| 100 FRIEND_TEST_ALL_PREFIXES(InstantExtendedPrefetchTest, ClearPrefetchedResults); | 101 FRIEND_TEST_ALL_PREFIXES(InstantExtendedPrefetchTest, ClearPrefetchedResults); |
| 101 FRIEND_TEST_ALL_PREFIXES(InstantExtendedPrefetchTest, SetPrefetchQuery); | 102 FRIEND_TEST_ALL_PREFIXES(InstantExtendedPrefetchTest, SetPrefetchQuery); |
| 102 | 103 |
| 103 // Manages the providers (TemplateURLs) used by SearchProvider. Two providers | 104 // Manages the providers (TemplateURLs) used by SearchProvider. Two providers |
| 104 // may be used: | 105 // may be used: |
| 105 // . The default provider. This corresponds to the user's default search | 106 // . The default provider. This corresponds to the user's default search |
| 106 // engine. This is always used, except for the rare case of no default | 107 // engine. This is always used, except for the rare case of no default |
| 107 // engine. | 108 // engine. |
| 108 // . The keyword provider. This is used if the user has typed in a keyword. | 109 // . The keyword provider. This is used if the user has typed in a keyword. |
| 109 class Providers { | 110 class Providers { |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 base::TimeTicks token_expiration_time_; | 401 base::TimeTicks token_expiration_time_; |
| 401 | 402 |
| 402 // Answers prefetch management. | 403 // Answers prefetch management. |
| 403 AnswersCache answers_cache_; // Cache for last answers seen. | 404 AnswersCache answers_cache_; // Cache for last answers seen. |
| 404 AnswersQueryData prefetch_data_; // Data to use for query prefetching. | 405 AnswersQueryData prefetch_data_; // Data to use for query prefetching. |
| 405 | 406 |
| 406 DISALLOW_COPY_AND_ASSIGN(SearchProvider); | 407 DISALLOW_COPY_AND_ASSIGN(SearchProvider); |
| 407 }; | 408 }; |
| 408 | 409 |
| 409 #endif // COMPONENTS_OMNIBOX_BROWSER_SEARCH_PROVIDER_H_ | 410 #endif // COMPONENTS_OMNIBOX_BROWSER_SEARCH_PROVIDER_H_ |
| OLD | NEW |