| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
| 6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
| 7 | 7 |
| 8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Sets whether we're off the record. Default is false. | 67 // Sets whether we're off the record. Default is false. |
| 68 void set_off_the_record(bool off_the_record) { | 68 void set_off_the_record(bool off_the_record) { |
| 69 off_the_record_ = off_the_record; | 69 off_the_record_ = off_the_record; |
| 70 } | 70 } |
| 71 virtual bool IsOffTheRecord() { return off_the_record_; } | 71 virtual bool IsOffTheRecord() { return off_the_record_; } |
| 72 virtual Profile* GetOffTheRecordProfile() { return NULL; } | 72 virtual Profile* GetOffTheRecordProfile() { return NULL; } |
| 73 | 73 |
| 74 virtual void DestroyOffTheRecordProfile() {} | 74 virtual void DestroyOffTheRecordProfile() {} |
| 75 | 75 |
| 76 virtual Profile* GetOriginalProfile() { return this; } | 76 virtual Profile* GetOriginalProfile() { return this; } |
| 77 virtual ChromeAppCacheService* GetAppCacheService() { return NULL; } | |
| 78 virtual VisitedLinkMaster* GetVisitedLinkMaster() { return NULL; } | 77 virtual VisitedLinkMaster* GetVisitedLinkMaster() { return NULL; } |
| 79 virtual ExtensionsService* GetExtensionsService() { return NULL; } | 78 virtual ExtensionsService* GetExtensionsService() { return NULL; } |
| 80 virtual UserScriptMaster* GetUserScriptMaster() { return NULL; } | 79 virtual UserScriptMaster* GetUserScriptMaster() { return NULL; } |
| 81 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() { | 80 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() { |
| 82 return NULL; | 81 return NULL; |
| 83 } | 82 } |
| 84 virtual ExtensionProcessManager* GetExtensionProcessManager() { return NULL; } | 83 virtual ExtensionProcessManager* GetExtensionProcessManager() { return NULL; } |
| 85 virtual ExtensionMessageService* GetExtensionMessageService() { return NULL; } | 84 virtual ExtensionMessageService* GetExtensionMessageService() { return NULL; } |
| 86 virtual SSLHostState* GetSSLHostState() { return NULL; } | 85 virtual SSLHostState* GetSSLHostState() { return NULL; } |
| 87 virtual net::StrictTransportSecurityState* GetStrictTransportSecurityState() { | 86 virtual net::StrictTransportSecurityState* GetStrictTransportSecurityState() { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual bool HasCreatedDownloadManager() const { return false; } | 123 virtual bool HasCreatedDownloadManager() const { return false; } |
| 125 virtual void InitThemes(); | 124 virtual void InitThemes(); |
| 126 virtual void SetTheme(Extension* extension) {} | 125 virtual void SetTheme(Extension* extension) {} |
| 127 virtual void SetNativeTheme() {} | 126 virtual void SetNativeTheme() {} |
| 128 virtual void ClearTheme() {} | 127 virtual void ClearTheme() {} |
| 129 virtual Extension* GetTheme() { return NULL; } | 128 virtual Extension* GetTheme() { return NULL; } |
| 130 virtual ThemeProvider* GetThemeProvider() { | 129 virtual ThemeProvider* GetThemeProvider() { |
| 131 InitThemes(); | 130 InitThemes(); |
| 132 return theme_provider_.get(); | 131 return theme_provider_.get(); |
| 133 } | 132 } |
| 134 virtual URLRequestContext* GetRequestContext() { return NULL; } | 133 virtual URLRequestContextGetter* GetRequestContext() { return NULL; } |
| 135 virtual URLRequestContext* GetRequestContextForMedia() { return NULL; } | 134 virtual URLRequestContextGetter* GetRequestContextForMedia() { return NULL; } |
| 136 virtual URLRequestContext* GetRequestContextForExtensions() { return NULL; } | 135 virtual URLRequestContextGetter* GetRequestContextForExtensions() { |
| 136 return NULL; |
| 137 } |
| 137 virtual net::SSLConfigService* GetSSLConfigService() { return NULL; } | 138 virtual net::SSLConfigService* GetSSLConfigService() { return NULL; } |
| 138 virtual Blacklist* GetBlacklist() { return NULL; } | 139 virtual Blacklist* GetBlacklist() { return NULL; } |
| 139 void set_session_service(SessionService* session_service) { | 140 void set_session_service(SessionService* session_service) { |
| 140 session_service_ = session_service; | 141 session_service_ = session_service; |
| 141 } | 142 } |
| 142 virtual SessionService* GetSessionService() { return session_service_.get(); } | 143 virtual SessionService* GetSessionService() { return session_service_.get(); } |
| 143 virtual void ShutdownSessionService() {} | 144 virtual void ShutdownSessionService() {} |
| 144 virtual bool HasSessionService() const { | 145 virtual bool HasSessionService() const { |
| 145 return (session_service_.get() != NULL); | 146 return (session_service_.get() != NULL); |
| 146 } | 147 } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 242 |
| 242 virtual ProfileId GetRuntimeId() { | 243 virtual ProfileId GetRuntimeId() { |
| 243 return original_profile_->GetRuntimeId(); | 244 return original_profile_->GetRuntimeId(); |
| 244 } | 245 } |
| 245 | 246 |
| 246 protected: | 247 protected: |
| 247 Profile* original_profile_; | 248 Profile* original_profile_; |
| 248 }; | 249 }; |
| 249 | 250 |
| 250 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 251 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |