| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ | 6 #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 friend class InstantExtendedTest; | 100 friend class InstantExtendedTest; |
| 101 friend class InstantServiceTest; | 101 friend class InstantServiceTest; |
| 102 friend class InstantTestBase; | 102 friend class InstantTestBase; |
| 103 friend class InstantUnitTestBase; | 103 friend class InstantUnitTestBase; |
| 104 | 104 |
| 105 FRIEND_TEST_ALL_PREFIXES(InstantExtendedManualTest, | 105 FRIEND_TEST_ALL_PREFIXES(InstantExtendedManualTest, |
| 106 MANUAL_SearchesFromFakebox); | 106 MANUAL_SearchesFromFakebox); |
| 107 FRIEND_TEST_ALL_PREFIXES(InstantExtendedTest, ProcessIsolation); | 107 FRIEND_TEST_ALL_PREFIXES(InstantExtendedTest, ProcessIsolation); |
| 108 FRIEND_TEST_ALL_PREFIXES(InstantServiceEnabledTest, | 108 FRIEND_TEST_ALL_PREFIXES(InstantServiceEnabledTest, |
| 109 SendsSearchURLsToRenderer); | 109 SendsSearchURLsToRenderer); |
| 110 FRIEND_TEST_ALL_PREFIXES(InstantServiceTest, GetSuggestionFromServiceSide); |
| 111 FRIEND_TEST_ALL_PREFIXES(InstantServiceTest, GetSuggestionFromClientSide); |
| 110 | 112 |
| 111 // KeyedService: | 113 // KeyedService: |
| 112 void Shutdown() override; | 114 void Shutdown() override; |
| 113 | 115 |
| 114 // content::NotificationObserver: | 116 // content::NotificationObserver: |
| 115 void Observe(int type, | 117 void Observe(int type, |
| 116 const content::NotificationSource& source, | 118 const content::NotificationSource& source, |
| 117 const content::NotificationDetails& details) override; | 119 const content::NotificationDetails& details) override; |
| 118 | 120 |
| 119 // TemplateURLServiceObserver: | 121 // TemplateURLServiceObserver: |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Suggestions Service to fetch server suggestions. | 189 // Suggestions Service to fetch server suggestions. |
| 188 suggestions::SuggestionsService* suggestions_service_; | 190 suggestions::SuggestionsService* suggestions_service_; |
| 189 | 191 |
| 190 // Used for Top Sites async retrieval. | 192 // Used for Top Sites async retrieval. |
| 191 base::WeakPtrFactory<InstantService> weak_ptr_factory_; | 193 base::WeakPtrFactory<InstantService> weak_ptr_factory_; |
| 192 | 194 |
| 193 DISALLOW_COPY_AND_ASSIGN(InstantService); | 195 DISALLOW_COPY_AND_ASSIGN(InstantService); |
| 194 }; | 196 }; |
| 195 | 197 |
| 196 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ | 198 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ |
| OLD | NEW |