Index: chrome/browser/profiles/profile.h |
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h |
index 357e5cadc24af5de19039b419ebe81641c9842e0..e83102a6d013f55e15500a33283a47ccdc822088 100644 |
--- a/chrome/browser/profiles/profile.h |
+++ b/chrome/browser/profiles/profile.h |
@@ -55,6 +55,7 @@ class SpeechRecognizer; |
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. |
// |