| 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 CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ |
| 6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 TestBrowserContext(); | 26 TestBrowserContext(); |
| 27 ~TestBrowserContext() override; | 27 ~TestBrowserContext() override; |
| 28 | 28 |
| 29 // Takes ownership of the temporary directory so that it's not deleted when | 29 // Takes ownership of the temporary directory so that it's not deleted when |
| 30 // this object is destructed. | 30 // this object is destructed. |
| 31 base::FilePath TakePath(); | 31 base::FilePath TakePath(); |
| 32 | 32 |
| 33 void SetSpecialStoragePolicy(storage::SpecialStoragePolicy* policy); | 33 void SetSpecialStoragePolicy(storage::SpecialStoragePolicy* policy); |
| 34 void SetPermissionManager( | 34 void SetPermissionManager( |
| 35 std::unique_ptr<PermissionManager> permission_manager); | 35 std::unique_ptr<PermissionManager> permission_manager); |
| 36 net::URLRequestContextGetter* GetRequestContext(); | |
| 37 | 36 |
| 38 base::FilePath GetPath() const override; | 37 base::FilePath GetPath() const override; |
| 39 std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( | 38 std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( |
| 40 const base::FilePath& partition_path) override; | 39 const base::FilePath& partition_path) override; |
| 41 bool IsOffTheRecord() const override; | 40 bool IsOffTheRecord() const override; |
| 42 DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 41 DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
| 42 net::URLRequestContextGetter* GetRequestContext() override; |
| 43 net::URLRequestContextGetter* GetMediaRequestContext() override; | 43 net::URLRequestContextGetter* GetMediaRequestContext() override; |
| 44 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 44 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
| 45 int renderer_child_id) override; | 45 int renderer_child_id) override; |
| 46 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( | 46 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( |
| 47 const base::FilePath& partition_path, | 47 const base::FilePath& partition_path, |
| 48 bool in_memory) override; | 48 bool in_memory) override; |
| 49 ResourceContext* GetResourceContext() override; | 49 ResourceContext* GetResourceContext() override; |
| 50 BrowserPluginGuestManager* GetGuestManager() override; | 50 BrowserPluginGuestManager* GetGuestManager() override; |
| 51 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 51 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
| 52 PushMessagingService* GetPushMessagingService() override; | 52 PushMessagingService* GetPushMessagingService() override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 70 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; | 70 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; |
| 71 std::unique_ptr<PermissionManager> permission_manager_; | 71 std::unique_ptr<PermissionManager> permission_manager_; |
| 72 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_; | 72 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); | 74 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace content | 77 } // namespace content |
| 78 | 78 |
| 79 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ | 79 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ |
| OLD | NEW |