| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // Called when we get new most visited items from TopSites, registered as an | 138 // Called when we get new most visited items from TopSites, registered as an |
| 139 // async callback. Parses them and sends them to the renderer via | 139 // async callback. Parses them and sends them to the renderer via |
| 140 // SendMostVisitedItems. | 140 // SendMostVisitedItems. |
| 141 void OnMostVisitedItemsReceived(const history::MostVisitedURLList& data); | 141 void OnMostVisitedItemsReceived(const history::MostVisitedURLList& data); |
| 142 | 142 |
| 143 // Notifies the observer about the last known most visited items. | 143 // Notifies the observer about the last known most visited items. |
| 144 void NotifyAboutMostVisitedItems(); | 144 void NotifyAboutMostVisitedItems(); |
| 145 | 145 |
| 146 #if defined(ENABLE_THEMES) | 146 #if defined(ENABLE_THEMES) |
| 147 // Theme changed notification handler. | 147 // Theme changed notification handler. |
| 148 void OnThemeChanged(ThemeService* theme_service); | 148 void OnThemeChanged(); |
| 149 #endif | 149 #endif |
| 150 | 150 |
| 151 void ResetInstantSearchPrerenderer(); | 151 void ResetInstantSearchPrerenderer(); |
| 152 | 152 |
| 153 Profile* const profile_; | 153 Profile* const profile_; |
| 154 | 154 |
| 155 // The TemplateURLService that we are observing. It will outlive this | 155 // The TemplateURLService that we are observing. It will outlive this |
| 156 // InstantService due to the dependency declared in InstantServiceFactory. | 156 // InstantService due to the dependency declared in InstantServiceFactory. |
| 157 TemplateURLService* template_url_service_; | 157 TemplateURLService* template_url_service_; |
| 158 | 158 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 189 // Suggestions Service to fetch server suggestions. | 189 // Suggestions Service to fetch server suggestions. |
| 190 suggestions::SuggestionsService* suggestions_service_; | 190 suggestions::SuggestionsService* suggestions_service_; |
| 191 | 191 |
| 192 // Used for Top Sites async retrieval. | 192 // Used for Top Sites async retrieval. |
| 193 base::WeakPtrFactory<InstantService> weak_ptr_factory_; | 193 base::WeakPtrFactory<InstantService> weak_ptr_factory_; |
| 194 | 194 |
| 195 DISALLOW_COPY_AND_ASSIGN(InstantService); | 195 DISALLOW_COPY_AND_ASSIGN(InstantService); |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ | 198 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ |
| OLD | NEW |