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

Unified Diff: chrome/browser/download/chrome_download_manager_delegate.h

Issue 7859001: Added ability to set ChromeDownloadManagerDelegate for testing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to TOT. Again. Created 9 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/chrome_download_manager_delegate.h
diff --git a/chrome/browser/download/chrome_download_manager_delegate.h b/chrome/browser/download/chrome_download_manager_delegate.h
index d371fb40c036eeb7568733fa34cb38dc99bb2781..b006e5396ded660c75780eb53b606a3a6991eff0 100644
--- a/chrome/browser/download/chrome_download_manager_delegate.h
+++ b/chrome/browser/download/chrome_download_manager_delegate.h
@@ -83,9 +83,16 @@ class ChromeDownloadManagerDelegate
DownloadPrefs* download_prefs() { return download_prefs_.get(); }
DownloadHistory* download_history() { return download_history_.get(); }
+ protected:
+ // So that test classes can inherit from this for override purposes.
+ virtual ~ChromeDownloadManagerDelegate();
+
+ // So that test classes that inherit from this for override purposes
+ // can call back into the DownloadManager.
+ scoped_refptr<DownloadManager> download_manager_;
+
private:
friend class base::RefCountedThreadSafe<ChromeDownloadManagerDelegate>;
- virtual ~ChromeDownloadManagerDelegate();
// NotificationObserver implementation.
virtual void Observe(int type,
@@ -128,7 +135,6 @@ class ChromeDownloadManagerDelegate
void CheckDownloadHashDone(int32 download_id, bool is_dangerous_hash);
Profile* profile_;
- scoped_refptr<DownloadManager> download_manager_;
scoped_ptr<DownloadPrefs> download_prefs_;
scoped_ptr<DownloadHistory> download_history_;
« no previous file with comments | « no previous file | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698