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

Unified Diff: content/browser/download/download_manager.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 | « chrome/test/base/testing_profile.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_manager.h
diff --git a/content/browser/download/download_manager.h b/content/browser/download/download_manager.h
index 542536f771e1f78352163a03f61d632af4f7c0e1..06803ce3a9fa4bd6068242941f2bf7c8eb1420df 100644
--- a/content/browser/download/download_manager.h
+++ b/content/browser/download/download_manager.h
@@ -276,12 +276,15 @@ class CONTENT_EXPORT DownloadManager
// For testing.
friend class DownloadManagerTest;
friend class MockDownloadManager;
+ friend class DownloadTest;
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.
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698