Index: content/public/browser/download_manager.h |
diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h |
index 9e38db2840d116404d2fbdd5ebc0b6bbb6941449..f6080fe5df2fa375ec65a05787eac3c6a881163d 100644 |
--- a/content/public/browser/download_manager.h |
+++ b/content/public/browser/download_manager.h |
@@ -84,6 +84,9 @@ class CONTENT_EXPORT DownloadManager : public base::SupportsUserData::Data { |
virtual void OnSavePackageSuccessfullyFinished( |
DownloadManager* manager, DownloadItem* item) {} |
+ // Called when the download manager has finished loading the data. |
+ virtual void OnManagerInitialized() {} |
+ |
// Called when the DownloadManager is being destroyed to prevent Observers |
// from calling back to a stale pointer. |
virtual void ManagerGoingDown(DownloadManager* manager) {} |
@@ -155,6 +158,12 @@ class CONTENT_EXPORT DownloadManager : public base::SupportsUserData::Data { |
bool transient, |
const std::vector<DownloadItem::ReceivedSlice>& received_slices) = 0; |
+ // Called when download manager has loaded all the data. |
+ virtual void PostInitialization() = 0; |
+ |
+ // Returns if the manager has been initialized and loaded all the data. |
+ virtual bool IsManagerInitialized() const = 0; |
+ |
// The number of in progress (including paused) downloads. |
// Performance note: this loops over all items. If profiling finds that this |
// is too slow, use an AllDownloadItemNotifier to count in-progress items. |