| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 virtual ThemeProvider* GetThemeProvider() { | 138 virtual ThemeProvider* GetThemeProvider() { |
| 139 InitThemes(); | 139 InitThemes(); |
| 140 return theme_provider_.get(); | 140 return theme_provider_.get(); |
| 141 } | 141 } |
| 142 virtual URLRequestContextGetter* GetRequestContext() { return NULL; } | 142 virtual URLRequestContextGetter* GetRequestContext() { return NULL; } |
| 143 virtual URLRequestContextGetter* GetRequestContextForMedia() { return NULL; } | 143 virtual URLRequestContextGetter* GetRequestContextForMedia() { return NULL; } |
| 144 virtual URLRequestContextGetter* GetRequestContextForExtensions() { | 144 virtual URLRequestContextGetter* GetRequestContextForExtensions() { |
| 145 return NULL; | 145 return NULL; |
| 146 } | 146 } |
| 147 virtual net::SSLConfigService* GetSSLConfigService() { return NULL; } | 147 virtual net::SSLConfigService* GetSSLConfigService() { return NULL; } |
| 148 virtual Blacklist* GetBlacklist() { return NULL; } | 148 virtual BlacklistManager* GetBlacklistManager() { return NULL; } |
| 149 void set_session_service(SessionService* session_service) { | 149 void set_session_service(SessionService* session_service) { |
| 150 session_service_ = session_service; | 150 session_service_ = session_service; |
| 151 } | 151 } |
| 152 virtual SessionService* GetSessionService() { return session_service_.get(); } | 152 virtual SessionService* GetSessionService() { return session_service_.get(); } |
| 153 virtual void ShutdownSessionService() {} | 153 virtual void ShutdownSessionService() {} |
| 154 virtual bool HasSessionService() const { | 154 virtual bool HasSessionService() const { |
| 155 return (session_service_.get() != NULL); | 155 return (session_service_.get() != NULL); |
| 156 } | 156 } |
| 157 virtual std::wstring GetName() { return std::wstring(); } | 157 virtual std::wstring GetName() { return std::wstring(); } |
| 158 virtual void SetName(const std::wstring& name) {} | 158 virtual void SetName(const std::wstring& name) {} |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 virtual ProfileId GetRuntimeId() { | 256 virtual ProfileId GetRuntimeId() { |
| 257 return original_profile_->GetRuntimeId(); | 257 return original_profile_->GetRuntimeId(); |
| 258 } | 258 } |
| 259 | 259 |
| 260 protected: | 260 protected: |
| 261 Profile* original_profile_; | 261 Profile* original_profile_; |
| 262 }; | 262 }; |
| 263 | 263 |
| 264 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 264 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |