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 UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_
6 #define UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_
8 #include "base/macros.h"
9 #include "content/public/browser/content_browser_client.h"
12 class ShellBrowserContext
;
17 class ViewsContentClient
;
18 class ViewsContentClientMainParts
;
20 class ViewsContentBrowserClient
: public content::ContentBrowserClient
{
22 explicit ViewsContentBrowserClient(
23 ViewsContentClient
* views_content_client
);
24 ~ViewsContentBrowserClient() override
;
26 // content::ContentBrowserClient:
27 content::BrowserMainParts
* CreateBrowserMainParts(
28 const content::MainFunctionParams
& parameters
) override
;
29 net::URLRequestContextGetter
* CreateRequestContext(
30 content::BrowserContext
* browser_context
,
31 content::ProtocolHandlerMap
* protocol_handlers
,
32 content::URLRequestInterceptorScopedVector request_interceptors
) override
;
35 ViewsContentClientMainParts
* views_content_main_parts_
;
36 ViewsContentClient
* views_content_client_
;
38 DISALLOW_COPY_AND_ASSIGN(ViewsContentBrowserClient
);
43 #endif // UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_