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
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_
8 #include "base/compiler_specific.h"
9 #include "content/shell/browser/shell_browser_context.h"
17 class DownloadManagerDelegate
;
18 class LayoutTestPermissionManager
;
19 class LayoutTestPushMessagingService
;
20 class PermissionManager
;
21 class PushMessagingService
;
23 class LayoutTestBrowserContext
: public ShellBrowserContext
{
25 LayoutTestBrowserContext(bool off_the_record
, net::NetLog
* net_log
);
26 ~LayoutTestBrowserContext() override
;
28 // BrowserContext implementation.
29 DownloadManagerDelegate
* GetDownloadManagerDelegate() override
;
30 PushMessagingService
* GetPushMessagingService() override
;
31 PermissionManager
* GetPermissionManager() override
;
33 LayoutTestPermissionManager
* GetLayoutTestPermissionManager();
36 ShellURLRequestContextGetter
* CreateURLRequestContextGetter(
37 ProtocolHandlerMap
* protocol_handlers
,
38 URLRequestInterceptorScopedVector request_interceptors
) override
;
41 scoped_ptr
<LayoutTestPushMessagingService
> push_messaging_service_
;
42 scoped_ptr
<PermissionManager
> permission_manager_
;
44 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserContext
);
47 } // namespace content
49 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_