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

Unified Diff: content/browser/download/download_manager_delegate.h

Issue 8135017: Refactor downloads into a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed indentation of calls to DownloadServiceFactory. Created 9 years, 2 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/browser/download/download_manager_delegate.h
diff --git a/content/browser/download/download_manager_delegate.h b/content/browser/download/download_manager_delegate.h
index 55d25f6a5f469021a3737e40af31f18b346d51fd..f0b0f7fadf1e13abeec5385699a0e9c0f2b9361f 100644
--- a/content/browser/download/download_manager_delegate.h
+++ b/content/browser/download/download_manager_delegate.h
@@ -11,6 +11,7 @@
#include "base/time.h"
class DownloadItem;
+class DownloadManager;
class FilePath;
class TabContents;
class SavePackage;
@@ -105,6 +106,10 @@ class DownloadManagerDelegate {
// Informs the delegate that the progress of downloads has changed.
virtual void DownloadProgressUpdated() = 0;
+ // Tell the delegate what manager it's delegating for;
+ // only called by the DownloadManager.
+ virtual void SetDownloadManager(DownloadManager* manager) = 0;
jam 2011/10/10 18:19:33 this pattern of having the delegate be told by the
Randy Smith (Not in Mondays) 2011/10/11 18:24:43 Yeah. This is to make the test code simpler--it a
+
protected:
DownloadManagerDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698