Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: content/public/browser/download_manager.h

Issue 10535026: Move creation and ownership of DownloadManager from the embedder to content. This matches all the o… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros compile Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/download_manager.h
===================================================================
--- content/public/browser/download_manager.h (revision 140592)
+++ content/public/browser/download_manager.h (working copy)
@@ -60,15 +60,15 @@
class CONTENT_EXPORT DownloadManager
: public base::RefCountedThreadSafe<DownloadManager> {
public:
- static DownloadManager* Create(
- DownloadManagerDelegate* delegate,
- net::NetLog* net_log);
-
// A method that can be used in tests to ensure that all the internal download
// classes have no pending downloads.
static bool EnsureNoPendingDownloadsForTesting();
- // Shutdown the download manager. Must be called before destruction.
+ // Sets the delegate for this DownloadManager. The delegate has to live past
+ // its Shutdown method being called.
Randy Smith (Not in Mondays) 2012/06/06 15:51:59 Which is under the control of the DownloadManager?
jam 2012/06/06 16:06:15 I've clarified the comment to say that Shutdown is
+ virtual void SetDelegate(DownloadManagerDelegate* delegate) = 0;
tfarina 2012/06/06 15:44:15 There is already a SetDownloadManagerDelegate in t
jam 2012/06/06 15:53:05 thanks, I'll remove SetDownloadManagerDelegate
+
+ // Shutdown the download manager. Called by content before destruction.
virtual void Shutdown() = 0;
// Interface to implement for observers that wish to be informed of changes

Powered by Google App Engine
This is Rietveld 408576698