Index: content/browser/download/download_manager.h |
diff --git a/content/browser/download/download_manager.h b/content/browser/download/download_manager.h |
index 822c1f7d24911aef5791bafada80308dbe078e16..f4b47fc095919cc3c690872cbb1a94735b7ce3b4 100644 |
--- a/content/browser/download/download_manager.h |
+++ b/content/browser/download/download_manager.h |
@@ -294,22 +294,23 @@ class CONTENT_EXPORT DownloadManager |
DownloadManagerDelegate* delegate() const { return delegate_; } |
+ // For testing only. |
+ void SetDownloadManagerDelegate(DownloadManagerDelegate* delegate); |
jam
2011/10/10 18:19:33
nit: please add a "ForTesting" suffix. we have pre
Miranda Callahan
2011/10/11 14:53:03
Whoa, I didn't know that we had a presubmit check
Randy Smith (Not in Mondays)
2011/10/11 18:24:43
Can I convince you to rescind this request? The p
jam
2011/10/11 19:31:13
sure, sounds reasonable. ideally, the presubmit ch
|
+ |
private: |
typedef std::set<DownloadItem*> DownloadSet; |
typedef base::hash_map<int64, DownloadItem*> DownloadMap; |
// For testing. |
friend class DownloadManagerTest; |
- friend class MockDownloadManager; |
friend class DownloadTest; |
+ friend class MockDownloadManager; |
friend class base::RefCountedThreadSafe<DownloadManager, |
BrowserThread::DeleteOnUIThread>; |
friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>; |
friend class DeleteTask<DownloadManager>; |
- void set_delegate(DownloadManagerDelegate* delegate) { delegate_ = delegate; } |
- |
virtual ~DownloadManager(); |
// Called on the FILE thread to check the existence of a downloaded file. |