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

Unified Diff: chrome/browser/profiles/profile.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/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 2cd49e459ee2b5e91ebbf4e7fa3b97607eb9ef53..70171ac6042308e3f048537691a7a9dbc5cc9f37 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -59,6 +59,7 @@ class Predictor;
class AutocompleteClassifier;
class BookmarkModel;
class ChromeAppCacheService;
+class ChromeDownloadManagerDelegate;
class ChromeURLDataManager;
class Extension;
class ExtensionDevToolsManager;
@@ -555,6 +556,13 @@ class Profile : public content::BrowserContext {
static net::URLRequestContextGetter* default_request_context_;
private:
+ friend class DownloadTest;
+
+ // Allow replacement of the download manager delegate, for interposition
+ // on browser tests. Note that this takes ownership of |delegate|.
+ virtual void SetDownloadManagerDelegate(
+ ChromeDownloadManagerDelegate* delegate) = 0;
+
// ***DEPRECATED**: You should be passing in the specific profile's
// URLRequestContextGetter or using the system URLRequestContextGetter.
//
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698