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_; |