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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( | 44 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( |
45 const base::FilePath& partition_path, | 45 const base::FilePath& partition_path, |
46 bool in_memory) override; | 46 bool in_memory) override; |
47 ResourceContext* GetResourceContext() override; | 47 ResourceContext* GetResourceContext() override; |
48 BrowserPluginGuestManager* GetGuestManager() override; | 48 BrowserPluginGuestManager* GetGuestManager() override; |
49 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 49 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
50 PushMessagingService* GetPushMessagingService() override; | 50 PushMessagingService* GetPushMessagingService() override; |
51 SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 51 SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
52 PermissionManager* GetPermissionManager() override; | 52 PermissionManager* GetPermissionManager() override; |
53 BackgroundSyncController* GetBackgroundSyncController() override; | 53 BackgroundSyncController* GetBackgroundSyncController() override; |
| 54 net::URLRequestContextGetter* CreateRequestContext( |
| 55 ProtocolHandlerMap* protocol_handlers, |
| 56 URLRequestInterceptorScopedVector request_interceptors) override; |
| 57 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 58 const base::FilePath& partition_path, |
| 59 bool in_memory, |
| 60 ProtocolHandlerMap* protocol_handlers, |
| 61 URLRequestInterceptorScopedVector request_interceptors) override; |
54 | 62 |
55 private: | 63 private: |
56 base::ScopedTempDir browser_context_dir_; | 64 base::ScopedTempDir browser_context_dir_; |
57 scoped_refptr<net::URLRequestContextGetter> request_context_; | 65 scoped_refptr<net::URLRequestContextGetter> request_context_; |
58 scoped_ptr<MockResourceContext> resource_context_; | 66 scoped_ptr<MockResourceContext> resource_context_; |
59 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 67 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
60 scoped_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; | 68 scoped_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; |
61 scoped_ptr<PermissionManager> permission_manager_; | 69 scoped_ptr<PermissionManager> permission_manager_; |
62 scoped_ptr<MockBackgroundSyncController> background_sync_controller_; | 70 scoped_ptr<MockBackgroundSyncController> background_sync_controller_; |
63 | 71 |
64 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); | 72 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); |
65 }; | 73 }; |
66 | 74 |
67 } // namespace content | 75 } // namespace content |
68 | 76 |
69 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ | 77 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ |
OLD | NEW |