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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 BlacklistManager* GetBlacklistManager() { return NULL; } | 148 virtual BlacklistManager* GetBlacklistManager() { return NULL; } |
| 149 virtual HostZoomMap* GetHostZoomMap() { return NULL; } |
149 void set_session_service(SessionService* session_service) { | 150 void set_session_service(SessionService* session_service) { |
150 session_service_ = session_service; | 151 session_service_ = session_service; |
151 } | 152 } |
152 virtual SessionService* GetSessionService() { return session_service_.get(); } | 153 virtual SessionService* GetSessionService() { return session_service_.get(); } |
153 virtual void ShutdownSessionService() {} | 154 virtual void ShutdownSessionService() {} |
154 virtual bool HasSessionService() const { | 155 virtual bool HasSessionService() const { |
155 return (session_service_.get() != NULL); | 156 return (session_service_.get() != NULL); |
156 } | 157 } |
157 virtual std::wstring GetName() { return std::wstring(); } | 158 virtual std::wstring GetName() { return std::wstring(); } |
158 virtual void SetName(const std::wstring& name) {} | 159 virtual void SetName(const std::wstring& name) {} |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 256 |
256 virtual ProfileId GetRuntimeId() { | 257 virtual ProfileId GetRuntimeId() { |
257 return original_profile_->GetRuntimeId(); | 258 return original_profile_->GetRuntimeId(); |
258 } | 259 } |
259 | 260 |
260 protected: | 261 protected: |
261 Profile* original_profile_; | 262 Profile* original_profile_; |
262 }; | 263 }; |
263 | 264 |
264 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 265 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |