Revert of Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320) (patchset...
[chromium-blink-merge.git] / ui / views_content_client / views_content_browser_client.h
blob98d9ee41b7cec932892b119445f5eef314784143
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"
11 namespace content {
12 class ShellBrowserContext;
15 namespace ui {
17 class ViewsContentClient;
18 class ViewsContentClientMainParts;
20 class ViewsContentBrowserClient : public content::ContentBrowserClient {
21 public:
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;
34 private:
35 ViewsContentClientMainParts* views_content_main_parts_;
36 ViewsContentClient* views_content_client_;
38 DISALLOW_COPY_AND_ASSIGN(ViewsContentBrowserClient);
41 } // namespace ui
43 #endif // UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_