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. |
// |