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

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: 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,14 +60,12 @@
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();
+ virtual void SetDelegate(DownloadManagerDelegate* delegate) = 0;
+
// Shutdown the download manager. Must be called before destruction.
virtual void Shutdown() = 0;

Powered by Google App Engine
This is Rietveld 408576698