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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
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; | |
226 content::ResourceContext* GetResourceContext() override; | 225 content::ResourceContext* GetResourceContext() override; |
227 content::BrowserPluginGuestManager* GetGuestManager() override; | 226 content::BrowserPluginGuestManager* GetGuestManager() override; |
228 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 227 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
229 content::PushMessagingService* GetPushMessagingService() override; | 228 content::PushMessagingService* GetPushMessagingService() override; |
230 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 229 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
231 content::PermissionManager* GetPermissionManager() override; | 230 content::PermissionManager* GetPermissionManager() override; |
232 content::BackgroundSyncController* GetBackgroundSyncController() override; | 231 content::BackgroundSyncController* GetBackgroundSyncController() override; |
233 net::URLRequestContextGetter* CreateRequestContext( | 232 net::URLRequestContextGetter* CreateRequestContext( |
234 content::ProtocolHandlerMap* protocol_handlers, | 233 content::ProtocolHandlerMap* protocol_handlers, |
235 content::URLRequestInterceptorScopedVector request_interceptors) override; | 234 content::URLRequestInterceptorScopedVector request_interceptors) override; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // has been removed. | 278 // has been removed. |
280 net::CookieStore* GetCookieStore(); | 279 net::CookieStore* GetCookieStore(); |
281 | 280 |
282 PrefService* GetPrefs() override; | 281 PrefService* GetPrefs() override; |
283 const PrefService* GetPrefs() const override; | 282 const PrefService* GetPrefs() const override; |
284 ChromeZoomLevelPrefs* GetZoomLevelPrefs() override; | 283 ChromeZoomLevelPrefs* GetZoomLevelPrefs() override; |
285 | 284 |
286 net::URLRequestContextGetter* GetMediaRequestContext() override; | 285 net::URLRequestContextGetter* GetMediaRequestContext() override; |
287 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 286 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
288 int renderer_child_id) override; | 287 int renderer_child_id) override; |
| 288 net::URLRequestContextGetter* GetRequestContext() override; |
289 net::URLRequestContextGetter* GetRequestContextForExtensions() override; | 289 net::URLRequestContextGetter* GetRequestContextForExtensions() override; |
290 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( | 290 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( |
291 const base::FilePath& partition_path, | 291 const base::FilePath& partition_path, |
292 bool in_memory) override; | 292 bool in_memory) 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; |
(...skipping 111 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 |