| Index: chrome/browser/download/download_status_updater.h
|
| diff --git a/chrome/browser/download/download_status_updater.h b/chrome/browser/download/download_status_updater.h
|
| index 252be03d391b00c8ee9881e2563d28be87b9c019..6d202b67df011418c95eabee72b42e8138c8223d 100644
|
| --- a/chrome/browser/download/download_status_updater.h
|
| +++ b/chrome/browser/download/download_status_updater.h
|
| @@ -42,12 +42,15 @@ class DownloadStatusUpdater
|
| virtual void OnDownloadDestroyed(content::DownloadItem* download) OVERRIDE;
|
|
|
| protected:
|
| - // Update the app icon. Virtual to be overridable for testing.
|
| - virtual void UpdateAppIconDownloadProgress();
|
| + // Platform-specific function to update the platform UI for download progress.
|
| + // |download| is the download item that changed. Virtual to be overridable for
|
| + // testing.
|
| + virtual void UpdateAppIconDownloadProgress(content::DownloadItem* download);
|
|
|
| private:
|
| - // Update the internal state tracking an item.
|
| - void UpdateItem(content::DownloadItem* download);
|
| + // Update the internal state tracking an item. Returns true if the item was
|
| + // added to the set of tracked items.
|
| + bool UpdateItem(content::DownloadItem* download);
|
|
|
| std::set<content::DownloadManager*> managers_;
|
| std::set<content::DownloadItem*> items_;
|
|
|