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 virtual ~ViewsContentBrowserClient();
26 // content::ContentBrowserClient:
27 virtual content::BrowserMainParts
* CreateBrowserMainParts(
28 const content::MainFunctionParams
& parameters
) OVERRIDE
;
29 virtual 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_