| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_H_ |
| 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_H_ | 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 // changes depending upon how many urls have been blacklisted. | 285 // changes depending upon how many urls have been blacklisted. |
| 286 int num_results_to_request_from_history() const; | 286 int num_results_to_request_from_history() const; |
| 287 | 287 |
| 288 // Invoked when transitioning to LOADED. Notifies any queued up callbacks. | 288 // Invoked when transitioning to LOADED. Notifies any queued up callbacks. |
| 289 void MoveStateToLoaded(); | 289 void MoveStateToLoaded(); |
| 290 | 290 |
| 291 void ResetThreadSafeCache(); | 291 void ResetThreadSafeCache(); |
| 292 | 292 |
| 293 void ResetThreadSafeImageCache(); | 293 void ResetThreadSafeImageCache(); |
| 294 | 294 |
| 295 void NotifyTopSitesChanged(); |
| 296 |
| 295 // Stops and starts timer with a delay of |delta|. | 297 // Stops and starts timer with a delay of |delta|. |
| 296 void RestartQueryForTopSitesTimer(base::TimeDelta delta); | 298 void RestartQueryForTopSitesTimer(base::TimeDelta delta); |
| 297 | 299 |
| 298 // Callback after TopSitesBackend has finished migration. This tells history | 300 // Callback after TopSitesBackend has finished migration. This tells history |
| 299 // to finish it's side of migration (nuking thumbnails on disk). | 301 // to finish it's side of migration (nuking thumbnails on disk). |
| 300 void OnHistoryMigrationWrittenToDisk( | 302 void OnHistoryMigrationWrittenToDisk( |
| 301 CancelableRequestProvider::Handle handle); | 303 CancelableRequestProvider::Handle handle); |
| 302 | 304 |
| 303 // Callback from TopSites with the top sites/thumbnails. | 305 // Callback from TopSites with the top sites/thumbnails. |
| 304 void OnGotMostVisitedThumbnails(CancelableRequestProvider::Handle handle, | 306 void OnGotMostVisitedThumbnails(CancelableRequestProvider::Handle handle, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 373 |
| 372 // Are we loaded? | 374 // Are we loaded? |
| 373 bool loaded_; | 375 bool loaded_; |
| 374 | 376 |
| 375 DISALLOW_COPY_AND_ASSIGN(TopSites); | 377 DISALLOW_COPY_AND_ASSIGN(TopSites); |
| 376 }; | 378 }; |
| 377 | 379 |
| 378 } // namespace history | 380 } // namespace history |
| 379 | 381 |
| 380 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ | 382 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ |
| OLD | NEW |