OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_HISTORY_TOP_SITES_IMPL_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ |
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ | 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 int num_results_to_request_from_history() const; | 198 int num_results_to_request_from_history() const; |
199 | 199 |
200 // Invoked when transitioning to LOADED. Notifies any queued up callbacks. | 200 // Invoked when transitioning to LOADED. Notifies any queued up callbacks. |
201 // Should be called from the UI thread. | 201 // Should be called from the UI thread. |
202 void MoveStateToLoaded(); | 202 void MoveStateToLoaded(); |
203 | 203 |
204 void ResetThreadSafeCache(); | 204 void ResetThreadSafeCache(); |
205 | 205 |
206 void ResetThreadSafeImageCache(); | 206 void ResetThreadSafeImageCache(); |
207 | 207 |
208 void NotifyTopSitesChanged(); | |
209 | |
210 // Stops and starts timer with a delay of |delta|. | 208 // Stops and starts timer with a delay of |delta|. |
211 void RestartQueryForTopSitesTimer(base::TimeDelta delta); | 209 void RestartQueryForTopSitesTimer(base::TimeDelta delta); |
212 | 210 |
213 // Callback from TopSites with the top sites/thumbnails. Should be called | 211 // Callback from TopSites with the top sites/thumbnails. Should be called |
214 // from the UI thread. | 212 // from the UI thread. |
215 void OnGotMostVisitedThumbnails( | 213 void OnGotMostVisitedThumbnails( |
216 const scoped_refptr<MostVisitedThumbnails>& thumbnails); | 214 const scoped_refptr<MostVisitedThumbnails>& thumbnails); |
217 | 215 |
218 // Called when history service returns a list of top URLs. | 216 // Called when history service returns a list of top URLs. |
219 void OnTopSitesAvailableFromHistory(const MostVisitedURLList* data); | 217 void OnTopSitesAvailableFromHistory(const MostVisitedURLList* data); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 262 |
265 // Are we loaded? | 263 // Are we loaded? |
266 bool loaded_; | 264 bool loaded_; |
267 | 265 |
268 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl); | 266 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl); |
269 }; | 267 }; |
270 | 268 |
271 } // namespace history | 269 } // namespace history |
272 | 270 |
273 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ | 271 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ |
OLD | NEW |