Chromium Code Reviews| Index: content/public/browser/download_manager.h |
| diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h |
| index 1d60213cc5183bf9a513ec2242ee53a37f6c72b8..48ee33605bba794611b3e0f5b66de3732420b39a 100644 |
| --- a/content/public/browser/download_manager.h |
| +++ b/content/public/browser/download_manager.h |
| @@ -79,9 +79,15 @@ class CONTENT_EXPORT DownloadManager |
| // to the DownloadManager's collection of downloads. |
| class CONTENT_EXPORT Observer { |
| public: |
| + // A DownloadItem was created. No guarantees are made about its state: it |
| + // may have just been loaded from history, it may be an active download, or |
| + // it may be a SavePage download, it may or may not already be persisted. |
|
Randy Smith (Not in Mondays)
2012/07/14 19:39:13
I'd feel better about this if we could make guaran
benjhayden
2012/07/18 21:28:31
Updated the comment to clarify which features are
|
| + virtual void OnDownloadCreated( |
| + DownloadManager* manager, DownloadItem* item) {} |
|
Randy Smith (Not in Mondays)
2012/07/14 19:39:13
What are your thoughts about a paired OnDownloadRe
benjhayden
2012/07/18 21:28:31
http://codereview.chromium.org/10704026/
Hanging a
|
| + |
| // New or deleted download, observers should query us for the current set |
| // of downloads. |
| - virtual void ModelChanged(DownloadManager* manager) = 0; |
| + virtual void ModelChanged(DownloadManager* manager) {} |
| // Called when the DownloadManager is being destroyed to prevent Observers |
| // from calling back to a stale pointer. |