OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ |
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ | 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/shell/browser/shell_browser_context.h" | 9 #include "content/shell/browser/shell_browser_context.h" |
10 | 10 |
11 namespace net { | 11 namespace net { |
12 class NetLog; | 12 class NetLog; |
13 } | 13 } |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class DownloadManagerDelegate; | 17 class DownloadManagerDelegate; |
| 18 class LayoutTestBluetoothAdapterProvider; |
18 class LayoutTestPermissionManager; | 19 class LayoutTestPermissionManager; |
19 class LayoutTestPushMessagingService; | 20 class LayoutTestPushMessagingService; |
20 class PermissionManager; | 21 class PermissionManager; |
21 class PushMessagingService; | 22 class PushMessagingService; |
22 | 23 |
23 class LayoutTestBrowserContext : public ShellBrowserContext { | 24 class LayoutTestBrowserContext : public ShellBrowserContext { |
24 public: | 25 public: |
25 LayoutTestBrowserContext(bool off_the_record, net::NetLog* net_log); | 26 LayoutTestBrowserContext(bool off_the_record, net::NetLog* net_log); |
26 ~LayoutTestBrowserContext() override; | 27 ~LayoutTestBrowserContext() override; |
27 | 28 |
(...skipping 10 matching lines...) Expand all Loading... |
38 const std::string& adapter) override; | 39 const std::string& adapter) override; |
39 | 40 |
40 protected: | 41 protected: |
41 ShellURLRequestContextGetter* CreateURLRequestContextGetter( | 42 ShellURLRequestContextGetter* CreateURLRequestContextGetter( |
42 ProtocolHandlerMap* protocol_handlers, | 43 ProtocolHandlerMap* protocol_handlers, |
43 URLRequestInterceptorScopedVector request_interceptors) override; | 44 URLRequestInterceptorScopedVector request_interceptors) override; |
44 | 45 |
45 private: | 46 private: |
46 scoped_ptr<LayoutTestPushMessagingService> push_messaging_service_; | 47 scoped_ptr<LayoutTestPushMessagingService> push_messaging_service_; |
47 scoped_ptr<PermissionManager> permission_manager_; | 48 scoped_ptr<PermissionManager> permission_manager_; |
48 | 49 scoped_ptr<LayoutTestBluetoothAdapterProvider> bluetooth_adapter_provider_; |
49 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserContext); | 50 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserContext); |
50 }; | 51 }; |
51 | 52 |
52 } // namespace content | 53 } // namespace content |
53 | 54 |
54 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ | 55 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ |
OLD | NEW |