OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void SetSupervisedUserId(const std::string& id); | 216 void SetSupervisedUserId(const std::string& id); |
217 | 217 |
218 // content::BrowserContext | 218 // content::BrowserContext |
219 base::FilePath GetPath() const override; | 219 base::FilePath GetPath() const override; |
220 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( | 220 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
221 const base::FilePath& partition_path) override; | 221 const base::FilePath& partition_path) override; |
222 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; | 222 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; |
223 bool IsOffTheRecord() const override; | 223 bool IsOffTheRecord() const override; |
224 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 224 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
225 net::URLRequestContextGetter* GetRequestContext() override; | 225 net::URLRequestContextGetter* GetRequestContext() override; |
226 net::URLRequestContextGetter* CreateRequestContext( | |
227 content::ProtocolHandlerMap* protocol_handlers, | |
228 content::URLRequestInterceptorScopedVector request_interceptors) override; | |
229 content::ResourceContext* GetResourceContext() override; | 226 content::ResourceContext* GetResourceContext() override; |
230 content::BrowserPluginGuestManager* GetGuestManager() override; | 227 content::BrowserPluginGuestManager* GetGuestManager() override; |
231 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 228 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
232 content::PushMessagingService* GetPushMessagingService() override; | 229 content::PushMessagingService* GetPushMessagingService() override; |
233 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 230 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
234 content::PermissionManager* GetPermissionManager() override; | 231 content::PermissionManager* GetPermissionManager() override; |
235 content::BackgroundSyncController* GetBackgroundSyncController() override; | 232 content::BackgroundSyncController* GetBackgroundSyncController() override; |
| 233 net::URLRequestContextGetter* CreateRequestContext( |
| 234 content::ProtocolHandlerMap* protocol_handlers, |
| 235 content::URLRequestInterceptorScopedVector request_interceptors) override; |
| 236 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 237 const base::FilePath& partition_path, |
| 238 bool in_memory, |
| 239 content::ProtocolHandlerMap* protocol_handlers, |
| 240 content::URLRequestInterceptorScopedVector request_interceptors) override; |
236 | 241 |
237 TestingProfile* AsTestingProfile() override; | 242 TestingProfile* AsTestingProfile() override; |
238 | 243 |
239 // Profile | 244 // Profile |
240 std::string GetProfileUserName() const override; | 245 std::string GetProfileUserName() const override; |
241 ProfileType GetProfileType() const override; | 246 ProfileType GetProfileType() const override; |
242 | 247 |
243 // DEPRECATED, because it's fragile to change a profile from non-incognito | 248 // DEPRECATED, because it's fragile to change a profile from non-incognito |
244 // to incognito after the ProfileKeyedServices have been created (some | 249 // to incognito after the ProfileKeyedServices have been created (some |
245 // ProfileKeyedServices either should not exist in incognito mode, or will | 250 // ProfileKeyedServices either should not exist in incognito mode, or will |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 const PrefService* GetPrefs() const override; | 283 const PrefService* GetPrefs() const override; |
279 ChromeZoomLevelPrefs* GetZoomLevelPrefs() override; | 284 ChromeZoomLevelPrefs* GetZoomLevelPrefs() override; |
280 | 285 |
281 net::URLRequestContextGetter* GetMediaRequestContext() override; | 286 net::URLRequestContextGetter* GetMediaRequestContext() override; |
282 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 287 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
283 int renderer_child_id) override; | 288 int renderer_child_id) override; |
284 net::URLRequestContextGetter* GetRequestContextForExtensions() override; | 289 net::URLRequestContextGetter* GetRequestContextForExtensions() override; |
285 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( | 290 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( |
286 const base::FilePath& partition_path, | 291 const base::FilePath& partition_path, |
287 bool in_memory) override; | 292 bool in_memory) override; |
288 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | |
289 const base::FilePath& partition_path, | |
290 bool in_memory, | |
291 content::ProtocolHandlerMap* protocol_handlers, | |
292 content::URLRequestInterceptorScopedVector request_interceptors) override; | |
293 net::SSLConfigService* GetSSLConfigService() override; | 293 net::SSLConfigService* GetSSLConfigService() override; |
294 void set_last_session_exited_cleanly(bool value) { | 294 void set_last_session_exited_cleanly(bool value) { |
295 last_session_exited_cleanly_ = value; | 295 last_session_exited_cleanly_ = value; |
296 } | 296 } |
297 bool IsSameProfile(Profile* p) override; | 297 bool IsSameProfile(Profile* p) override; |
298 base::Time GetStartTime() const override; | 298 base::Time GetStartTime() const override; |
299 base::FilePath last_selected_directory() override; | 299 base::FilePath last_selected_directory() override; |
300 void set_last_selected_directory(const base::FilePath& path) override; | 300 void set_last_selected_directory(const base::FilePath& path) override; |
301 bool WasCreatedByVersionOrLater(const std::string& version) override; | 301 bool WasCreatedByVersionOrLater(const std::string& version) override; |
302 bool IsGuestSession() const override; | 302 bool IsGuestSession() const override; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 410 |
411 // Weak pointer to a delegate for indicating that a profile was created. | 411 // Weak pointer to a delegate for indicating that a profile was created. |
412 Delegate* delegate_; | 412 Delegate* delegate_; |
413 | 413 |
414 std::string profile_name_; | 414 std::string profile_name_; |
415 | 415 |
416 scoped_ptr<policy::PolicyService> policy_service_; | 416 scoped_ptr<policy::PolicyService> policy_service_; |
417 }; | 417 }; |
418 | 418 |
419 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 419 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |