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 28 matching lines...) Expand all Loading... |
39 std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( | 39 std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( |
40 const base::FilePath& partition_path) override; | 40 const base::FilePath& partition_path) override; |
41 bool IsOffTheRecord() const override; | 41 bool IsOffTheRecord() const override; |
42 DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 42 DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
43 ResourceContext* GetResourceContext() override; | 43 ResourceContext* GetResourceContext() override; |
44 BrowserPluginGuestManager* GetGuestManager() override; | 44 BrowserPluginGuestManager* GetGuestManager() override; |
45 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 45 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
46 PushMessagingService* GetPushMessagingService() override; | 46 PushMessagingService* GetPushMessagingService() override; |
47 SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 47 SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
48 PermissionManager* GetPermissionManager() override; | 48 PermissionManager* GetPermissionManager() override; |
| 49 BackgroundFetchClient* GetBackgroundFetchClient() override; |
49 BackgroundSyncController* GetBackgroundSyncController() override; | 50 BackgroundSyncController* GetBackgroundSyncController() override; |
50 net::URLRequestContextGetter* CreateRequestContext( | 51 net::URLRequestContextGetter* CreateRequestContext( |
51 ProtocolHandlerMap* protocol_handlers, | 52 ProtocolHandlerMap* protocol_handlers, |
52 URLRequestInterceptorScopedVector request_interceptors) override; | 53 URLRequestInterceptorScopedVector request_interceptors) override; |
53 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 54 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
54 const base::FilePath& partition_path, | 55 const base::FilePath& partition_path, |
55 bool in_memory, | 56 bool in_memory, |
56 ProtocolHandlerMap* protocol_handlers, | 57 ProtocolHandlerMap* protocol_handlers, |
57 URLRequestInterceptorScopedVector request_interceptors) override; | 58 URLRequestInterceptorScopedVector request_interceptors) override; |
58 net::URLRequestContextGetter* CreateMediaRequestContext() override; | 59 net::URLRequestContextGetter* CreateMediaRequestContext() override; |
59 net::URLRequestContextGetter* CreateMediaRequestContextForStoragePartition( | 60 net::URLRequestContextGetter* CreateMediaRequestContextForStoragePartition( |
60 const base::FilePath& partition_path, | 61 const base::FilePath& partition_path, |
61 bool in_memory) override; | 62 bool in_memory) override; |
62 | 63 |
63 private: | 64 private: |
64 base::ScopedTempDir browser_context_dir_; | 65 base::ScopedTempDir browser_context_dir_; |
65 scoped_refptr<net::URLRequestContextGetter> request_context_; | 66 scoped_refptr<net::URLRequestContextGetter> request_context_; |
66 std::unique_ptr<MockResourceContext> resource_context_; | 67 std::unique_ptr<MockResourceContext> resource_context_; |
67 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 68 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
68 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; | 69 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; |
69 std::unique_ptr<PermissionManager> permission_manager_; | 70 std::unique_ptr<PermissionManager> permission_manager_; |
70 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_; | 71 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_; |
71 | 72 |
72 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); | 73 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); |
73 }; | 74 }; |
74 | 75 |
75 } // namespace content | 76 } // namespace content |
76 | 77 |
77 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ | 78 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ |
OLD | NEW |