| 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 LayoutTestPushMessagingService; | 18 class LayoutTestPushMessagingService; |
| 19 class PermissionManager; |
| 19 class PushMessagingService; | 20 class PushMessagingService; |
| 20 | 21 |
| 21 class LayoutTestBrowserContext : public ShellBrowserContext { | 22 class LayoutTestBrowserContext : public ShellBrowserContext { |
| 22 public: | 23 public: |
| 23 LayoutTestBrowserContext(bool off_the_record, net::NetLog* net_log); | 24 LayoutTestBrowserContext(bool off_the_record, net::NetLog* net_log); |
| 24 ~LayoutTestBrowserContext() override; | 25 ~LayoutTestBrowserContext() override; |
| 25 | 26 |
| 26 // BrowserContext implementation. | 27 // BrowserContext implementation. |
| 27 DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 28 DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
| 28 PushMessagingService* GetPushMessagingService() override; | 29 PushMessagingService* GetPushMessagingService() override; |
| 30 PermissionManager* GetPermissionManager() override; |
| 29 | 31 |
| 30 LayoutTestPushMessagingService* GetLayoutTestPushMessagingService(); | 32 LayoutTestPushMessagingService* GetLayoutTestPushMessagingService(); |
| 31 | 33 |
| 32 protected: | 34 protected: |
| 33 ShellURLRequestContextGetter* CreateURLRequestContextGetter( | 35 ShellURLRequestContextGetter* CreateURLRequestContextGetter( |
| 34 ProtocolHandlerMap* protocol_handlers, | 36 ProtocolHandlerMap* protocol_handlers, |
| 35 URLRequestInterceptorScopedVector request_interceptors) override; | 37 URLRequestInterceptorScopedVector request_interceptors) override; |
| 36 | 38 |
| 37 private: | 39 private: |
| 38 scoped_ptr<LayoutTestPushMessagingService> push_messaging_service_; | 40 scoped_ptr<LayoutTestPushMessagingService> push_messaging_service_; |
| 41 scoped_ptr<PermissionManager> permission_manager_; |
| 39 | 42 |
| 40 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserContext); | 43 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserContext); |
| 41 }; | 44 }; |
| 42 | 45 |
| 43 } // namespace content | 46 } // namespace content |
| 44 | 47 |
| 45 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ | 48 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ |
| OLD | NEW |