| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/public/browser/content_browser_client.h" | 12 #include "content/public/browser/content_browser_client.h" |
| 13 | 13 |
| 14 namespace breakpad { | 14 namespace breakpad { |
| 15 class CrashHandlerHostLinux; | 15 class CrashHandlerHostLinux; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace chromecast { | 18 namespace chromecast { |
| 19 namespace shell { | 19 namespace shell { |
| 20 | 20 |
| 21 class CastBrowserMainParts; | 21 class CastBrowserMainParts; |
| 22 class URLRequestContextFactory; | 22 class URLRequestContextFactory; |
| 23 | 23 |
| 24 void PlatformAppendExtraCommandLineSwitches(base::CommandLine* command_line); |
| 25 |
| 24 class CastContentBrowserClient: public content::ContentBrowserClient { | 26 class CastContentBrowserClient: public content::ContentBrowserClient { |
| 25 public: | 27 public: |
| 26 CastContentBrowserClient(); | 28 CastContentBrowserClient(); |
| 27 ~CastContentBrowserClient() override; | 29 ~CastContentBrowserClient() override; |
| 28 | 30 |
| 29 // content::ContentBrowserClient implementation: | 31 // content::ContentBrowserClient implementation: |
| 30 content::BrowserMainParts* CreateBrowserMainParts( | 32 content::BrowserMainParts* CreateBrowserMainParts( |
| 31 const content::MainFunctionParams& parameters) override; | 33 const content::MainFunctionParams& parameters) override; |
| 32 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; | 34 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; |
| 33 net::URLRequestContextGetter* CreateRequestContext( | 35 net::URLRequestContextGetter* CreateRequestContext( |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 107 |
| 106 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 108 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
| 107 | 109 |
| 108 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 110 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 } // namespace shell | 113 } // namespace shell |
| 112 } // namespace chromecast | 114 } // namespace chromecast |
| 113 | 115 |
| 114 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 116 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |