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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 TestingPrefServiceSyncable* GetTestingPrefService(); | 206 TestingPrefServiceSyncable* GetTestingPrefService(); |
207 | 207 |
208 // content::BrowserContext | 208 // content::BrowserContext |
209 virtual base::FilePath GetPath() const OVERRIDE; | 209 virtual base::FilePath GetPath() const OVERRIDE; |
210 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; | 210 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; |
211 virtual bool IsOffTheRecord() const OVERRIDE; | 211 virtual bool IsOffTheRecord() const OVERRIDE; |
212 virtual content::DownloadManagerDelegate* | 212 virtual content::DownloadManagerDelegate* |
213 GetDownloadManagerDelegate() OVERRIDE; | 213 GetDownloadManagerDelegate() OVERRIDE; |
214 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 214 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
215 virtual net::URLRequestContextGetter* CreateRequestContext( | 215 virtual net::URLRequestContextGetter* CreateRequestContext( |
216 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; | 216 content::ProtocolHandlerMap* protocol_handlers, |
| 217 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; |
217 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 218 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
218 int renderer_child_id) OVERRIDE; | 219 int renderer_child_id) OVERRIDE; |
219 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 220 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
220 virtual content::GeolocationPermissionContext* | 221 virtual content::GeolocationPermissionContext* |
221 GetGeolocationPermissionContext() OVERRIDE; | 222 GetGeolocationPermissionContext() OVERRIDE; |
222 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 223 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
223 | 224 |
224 virtual TestingProfile* AsTestingProfile() OVERRIDE; | 225 virtual TestingProfile* AsTestingProfile() OVERRIDE; |
225 virtual std::string GetProfileName() OVERRIDE; | 226 virtual std::string GetProfileName() OVERRIDE; |
226 | 227 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 int render_view_id, | 290 int render_view_id, |
290 int bridge_id, | 291 int bridge_id, |
291 int group_id, | 292 int group_id, |
292 const GURL& requesting_frame, | 293 const GURL& requesting_frame, |
293 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; | 294 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; |
294 virtual void CancelProtectedMediaIdentifierPermissionRequests( | 295 virtual void CancelProtectedMediaIdentifierPermissionRequests( |
295 int group_id) OVERRIDE; | 296 int group_id) OVERRIDE; |
296 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 297 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
297 const base::FilePath& partition_path, | 298 const base::FilePath& partition_path, |
298 bool in_memory, | 299 bool in_memory, |
299 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; | 300 content::ProtocolHandlerMap* protocol_handlers, |
| 301 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; |
300 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 302 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; |
301 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 303 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
302 virtual std::wstring GetName(); | 304 virtual std::wstring GetName(); |
303 virtual void SetName(const std::wstring& name) {} | 305 virtual void SetName(const std::wstring& name) {} |
304 virtual std::wstring GetID(); | 306 virtual std::wstring GetID(); |
305 virtual void SetID(const std::wstring& id); | 307 virtual void SetID(const std::wstring& id); |
306 void set_last_session_exited_cleanly(bool value) { | 308 void set_last_session_exited_cleanly(bool value) { |
307 last_session_exited_cleanly_ = value; | 309 last_session_exited_cleanly_ = value; |
308 } | 310 } |
309 virtual void MergeResourceString(int message_id, | 311 virtual void MergeResourceString(int message_id, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 425 |
424 // Weak pointer to a delegate for indicating that a profile was created. | 426 // Weak pointer to a delegate for indicating that a profile was created. |
425 Delegate* delegate_; | 427 Delegate* delegate_; |
426 | 428 |
427 std::string profile_name_; | 429 std::string profile_name_; |
428 | 430 |
429 scoped_ptr<policy::PolicyService> policy_service_; | 431 scoped_ptr<policy::PolicyService> policy_service_; |
430 }; | 432 }; |
431 | 433 |
432 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 434 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |