| 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_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ | 6 #define UI_VIEWS_CONTENT_CLIENT_VIEWS_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 ui { |
| 16 namespace examples { | |
| 17 | 16 |
| 18 class ExamplesBrowserMainParts; | 17 class ViewsContentClient; |
| 18 class ViewsContentClientMainParts; |
| 19 | 19 |
| 20 class ExamplesContentBrowserClient : public content::ContentBrowserClient { | 20 class ViewsContentBrowserClient : public content::ContentBrowserClient { |
| 21 public: | 21 public: |
| 22 ExamplesContentBrowserClient(); | 22 explicit ViewsContentBrowserClient( |
| 23 virtual ~ExamplesContentBrowserClient(); | 23 ViewsContentClient* views_content_client); |
| 24 virtual ~ViewsContentBrowserClient(); |
| 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 ViewsContentClientMainParts* views_content_main_parts_; |
| 36 ViewsContentClient* views_content_client_; |
| 35 | 37 |
| 36 DISALLOW_COPY_AND_ASSIGN(ExamplesContentBrowserClient); | 38 DISALLOW_COPY_AND_ASSIGN(ViewsContentBrowserClient); |
| 37 }; | 39 }; |
| 38 | 40 |
| 39 } // namespace examples | 41 } // namespace ui |
| 40 } // namespace views | |
| 41 | 42 |
| 42 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ | 43 #endif // UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |