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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 scoped_refptr<net::URLRequestContextGetter> request_context_; | 65 scoped_refptr<net::URLRequestContextGetter> request_context_; |
66 std::unique_ptr<MockResourceContext> resource_context_; | 66 std::unique_ptr<MockResourceContext> resource_context_; |
67 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 67 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
68 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; | 68 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; |
69 std::unique_ptr<PermissionManager> permission_manager_; | 69 std::unique_ptr<PermissionManager> permission_manager_; |
70 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_; | 70 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); | 72 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); |
73 }; | 73 }; |
74 | 74 |
| 75 // An incognito version of a TestBrowserContext. |
| 76 class TestBrowserContextIncognito : public TestBrowserContext { |
| 77 public: |
| 78 TestBrowserContextIncognito(); |
| 79 ~TestBrowserContextIncognito() override; |
| 80 |
| 81 // TestBrowserContext implementation. |
| 82 bool IsOffTheRecord() const override; |
| 83 |
| 84 private: |
| 85 DISALLOW_COPY_AND_ASSIGN(TestBrowserContextIncognito); |
| 86 }; |
| 87 |
75 } // namespace content | 88 } // namespace content |
76 | 89 |
77 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ | 90 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ |
OLD | NEW |