OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 virtual URLRequestContextGetter* GetRequestContext(); | 177 virtual URLRequestContextGetter* GetRequestContext(); |
178 void CreateRequestContext(); | 178 void CreateRequestContext(); |
179 | 179 |
180 virtual URLRequestContextGetter* GetRequestContextForMedia() { return NULL; } | 180 virtual URLRequestContextGetter* GetRequestContextForMedia() { return NULL; } |
181 virtual URLRequestContextGetter* GetRequestContextForExtensions() { | 181 virtual URLRequestContextGetter* GetRequestContextForExtensions() { |
182 return NULL; | 182 return NULL; |
183 } | 183 } |
184 | 184 |
185 virtual net::SSLConfigService* GetSSLConfigService() { return NULL; } | 185 virtual net::SSLConfigService* GetSSLConfigService() { return NULL; } |
186 virtual Blacklist* GetPrivacyBlacklist() { return NULL; } | 186 virtual Blacklist* GetPrivacyBlacklist() { return NULL; } |
| 187 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() { return NULL; } |
187 virtual HostContentSettingsMap* GetHostContentSettingsMap() { | 188 virtual HostContentSettingsMap* GetHostContentSettingsMap() { |
188 if (!host_content_settings_map_.get()) | 189 if (!host_content_settings_map_.get()) |
189 host_content_settings_map_ = new HostContentSettingsMap(this); | 190 host_content_settings_map_ = new HostContentSettingsMap(this); |
190 return host_content_settings_map_.get(); | 191 return host_content_settings_map_.get(); |
191 } | 192 } |
192 virtual HostZoomMap* GetHostZoomMap() { return NULL; } | 193 virtual HostZoomMap* GetHostZoomMap() { return NULL; } |
193 void set_session_service(SessionService* session_service); | 194 void set_session_service(SessionService* session_service); |
194 virtual SessionService* GetSessionService() { return session_service_.get(); } | 195 virtual SessionService* GetSessionService() { return session_service_.get(); } |
195 virtual void ShutdownSessionService() {} | 196 virtual void ShutdownSessionService() {} |
196 virtual bool HasSessionService() const { | 197 virtual bool HasSessionService() const { |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 327 |
327 virtual ProfileId GetRuntimeId() { | 328 virtual ProfileId GetRuntimeId() { |
328 return original_profile_->GetRuntimeId(); | 329 return original_profile_->GetRuntimeId(); |
329 } | 330 } |
330 | 331 |
331 protected: | 332 protected: |
332 Profile* original_profile_; | 333 Profile* original_profile_; |
333 }; | 334 }; |
334 | 335 |
335 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 336 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |