Add notification of data reduction proxy field trial
[chromium-blink-merge.git] / ui / views_content_client / views_content_browser_client.h
blobf01cd3acb31b166f4384a271f40706082adfd53a
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 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;
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_