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