| 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 | 9 |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 // content::BrowserContext | 205 // content::BrowserContext |
| 206 virtual base::FilePath GetPath() const OVERRIDE; | 206 virtual base::FilePath GetPath() const OVERRIDE; |
| 207 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; | 207 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; |
| 208 virtual bool IsOffTheRecord() const OVERRIDE; | 208 virtual bool IsOffTheRecord() const OVERRIDE; |
| 209 virtual content::DownloadManagerDelegate* | 209 virtual content::DownloadManagerDelegate* |
| 210 GetDownloadManagerDelegate() OVERRIDE; | 210 GetDownloadManagerDelegate() OVERRIDE; |
| 211 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 211 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 212 virtual net::URLRequestContextGetter* CreateRequestContext( | 212 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 213 content::ProtocolHandlerMap* protocol_handlers, | 213 content::ProtocolHandlerMap* protocol_handlers, |
| 214 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | 214 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; |
| 215 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 215 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 216 int renderer_child_id) OVERRIDE; | 216 int renderer_child_id) OVERRIDE; |
| 217 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 217 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
| 218 virtual content::GeolocationPermissionContext* | 218 virtual content::GeolocationPermissionContext* |
| 219 GetGeolocationPermissionContext() OVERRIDE; | 219 GetGeolocationPermissionContext() OVERRIDE; |
| 220 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; | 220 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; |
| 221 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 221 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
| 222 | 222 |
| 223 virtual TestingProfile* AsTestingProfile() OVERRIDE; | 223 virtual TestingProfile* AsTestingProfile() OVERRIDE; |
| 224 | 224 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 int bridge_id, | 293 int bridge_id, |
| 294 int group_id, | 294 int group_id, |
| 295 const GURL& requesting_frame, | 295 const GURL& requesting_frame, |
| 296 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; | 296 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; |
| 297 virtual void CancelProtectedMediaIdentifierPermissionRequests( | 297 virtual void CancelProtectedMediaIdentifierPermissionRequests( |
| 298 int group_id) OVERRIDE; | 298 int group_id) OVERRIDE; |
| 299 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 299 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 300 const base::FilePath& partition_path, | 300 const base::FilePath& partition_path, |
| 301 bool in_memory, | 301 bool in_memory, |
| 302 content::ProtocolHandlerMap* protocol_handlers, | 302 content::ProtocolHandlerMap* protocol_handlers, |
| 303 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | 303 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; |
| 304 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 304 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; |
| 305 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 305 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
| 306 void set_last_session_exited_cleanly(bool value) { | 306 void set_last_session_exited_cleanly(bool value) { |
| 307 last_session_exited_cleanly_ = value; | 307 last_session_exited_cleanly_ = value; |
| 308 } | 308 } |
| 309 virtual bool IsSameProfile(Profile *p) OVERRIDE; | 309 virtual bool IsSameProfile(Profile *p) OVERRIDE; |
| 310 virtual base::Time GetStartTime() const OVERRIDE; | 310 virtual base::Time GetStartTime() const OVERRIDE; |
| 311 virtual base::FilePath last_selected_directory() OVERRIDE; | 311 virtual base::FilePath last_selected_directory() OVERRIDE; |
| 312 virtual void set_last_selected_directory(const base::FilePath& path) OVERRIDE; | 312 virtual void set_last_selected_directory(const base::FilePath& path) OVERRIDE; |
| 313 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; | 313 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 | 420 |
| 421 // Weak pointer to a delegate for indicating that a profile was created. | 421 // Weak pointer to a delegate for indicating that a profile was created. |
| 422 Delegate* delegate_; | 422 Delegate* delegate_; |
| 423 | 423 |
| 424 std::string profile_name_; | 424 std::string profile_name_; |
| 425 | 425 |
| 426 scoped_ptr<policy::PolicyService> policy_service_; | 426 scoped_ptr<policy::PolicyService> policy_service_; |
| 427 }; | 427 }; |
| 428 | 428 |
| 429 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 429 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |