OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ |
6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ | 6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/content_browser_client.h" | 9 #include "content/public/browser/content_browser_client.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 class ShellBrowserContext; | 12 class ShellBrowserContext; |
13 } | 13 } |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 namespace examples { | 16 namespace examples { |
17 | 17 |
18 class ExamplesBrowserMainParts; | 18 class ExamplesBrowserMainParts; |
| 19 class ExamplesMainParams; |
19 | 20 |
20 class ExamplesContentBrowserClient : public content::ContentBrowserClient { | 21 class ExamplesContentBrowserClient : public content::ContentBrowserClient { |
21 public: | 22 public: |
22 ExamplesContentBrowserClient(); | 23 explicit ExamplesContentBrowserClient(ExamplesMainParams* examples_params); |
23 virtual ~ExamplesContentBrowserClient(); | 24 virtual ~ExamplesContentBrowserClient(); |
24 | 25 |
25 // content::ContentBrowserClient: | 26 // content::ContentBrowserClient: |
26 virtual content::BrowserMainParts* CreateBrowserMainParts( | 27 virtual content::BrowserMainParts* CreateBrowserMainParts( |
27 const content::MainFunctionParams& parameters) OVERRIDE; | 28 const content::MainFunctionParams& parameters) OVERRIDE; |
28 virtual net::URLRequestContextGetter* CreateRequestContext( | 29 virtual net::URLRequestContextGetter* CreateRequestContext( |
29 content::BrowserContext* browser_context, | 30 content::BrowserContext* browser_context, |
30 content::ProtocolHandlerMap* protocol_handlers, | 31 content::ProtocolHandlerMap* protocol_handlers, |
31 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | 32 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; |
32 | 33 |
33 private: | 34 private: |
34 ExamplesBrowserMainParts* examples_browser_main_parts_; | 35 ExamplesBrowserMainParts* examples_browser_main_parts_; |
| 36 ExamplesMainParams* examples_params_; |
35 | 37 |
36 DISALLOW_COPY_AND_ASSIGN(ExamplesContentBrowserClient); | 38 DISALLOW_COPY_AND_ASSIGN(ExamplesContentBrowserClient); |
37 }; | 39 }; |
38 | 40 |
39 } // namespace examples | 41 } // namespace examples |
40 } // namespace views | 42 } // namespace views |
41 | 43 |
42 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ | 44 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |