| 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..d16ad2a5a543cde3fcfb6d35b2e7e39334e93ce7 100644
|
| --- a/content/browser/download/download_manager.h
|
| +++ b/content/browser/download/download_manager.h
|
| @@ -294,22 +294,24 @@ class CONTENT_EXPORT DownloadManager
|
|
|
| DownloadManagerDelegate* delegate() const { return delegate_; }
|
|
|
| + // For testing only. May be called from tests indirectly (through
|
| + // other for testing only methods).
|
| + void SetDownloadManagerDelegate(DownloadManagerDelegate* delegate);
|
| +
|
| 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.
|
|
|