| 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 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace media { | 24 namespace media { |
| 25 class AudioManagerFactory; | 25 class AudioManagerFactory; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace net { | 28 namespace net { |
| 29 class HostResolver; | 29 class HostResolver; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace chromecast { | 32 namespace chromecast { |
| 33 namespace media { |
| 34 class MediaPipelineDevice; |
| 35 class MediaPipelineDeviceParams; |
| 36 } |
| 37 |
| 33 namespace shell { | 38 namespace shell { |
| 34 | 39 |
| 35 class CastBrowserMainParts; | 40 class CastBrowserMainParts; |
| 36 class URLRequestContextFactory; | 41 class URLRequestContextFactory; |
| 37 | 42 |
| 38 class CastContentBrowserClient: public content::ContentBrowserClient { | 43 class CastContentBrowserClient: public content::ContentBrowserClient { |
| 39 public: | 44 public: |
| 40 CastContentBrowserClient(); | 45 CastContentBrowserClient(); |
| 41 ~CastContentBrowserClient() override; | 46 ~CastContentBrowserClient() override; |
| 42 | 47 |
| 43 // Appends extra command line arguments before launching a new process. | 48 // Appends extra command line arguments before launching a new process. |
| 44 void PlatformAppendExtraCommandLineSwitches(base::CommandLine* command_line); | 49 void PlatformAppendExtraCommandLineSwitches(base::CommandLine* command_line); |
| 45 | 50 |
| 46 // Returns any BrowserMessageFilters from the platform implementation that | 51 // Returns any BrowserMessageFilters from the platform implementation that |
| 47 // should be added when launching a new render process. | 52 // should be added when launching a new render process. |
| 48 std::vector<scoped_refptr<content::BrowserMessageFilter>> | 53 std::vector<scoped_refptr<content::BrowserMessageFilter>> |
| 49 PlatformGetBrowserMessageFilters(); | 54 PlatformGetBrowserMessageFilters(); |
| 50 | 55 |
| 56 #if !defined(OS_ANDROID) |
| 57 // Creates a MediaPipelineDevice (CMA backend) for media playback, called |
| 58 // once per media player instance. |
| 59 scoped_ptr<media::MediaPipelineDevice> PlatformCreateMediaPipelineDevice( |
| 60 const media::MediaPipelineDeviceParams& params); |
| 61 #endif |
| 62 |
| 51 // content::ContentBrowserClient implementation: | 63 // content::ContentBrowserClient implementation: |
| 52 content::BrowserMainParts* CreateBrowserMainParts( | 64 content::BrowserMainParts* CreateBrowserMainParts( |
| 53 const content::MainFunctionParams& parameters) override; | 65 const content::MainFunctionParams& parameters) override; |
| 54 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; | 66 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; |
| 55 net::URLRequestContextGetter* CreateRequestContext( | 67 net::URLRequestContextGetter* CreateRequestContext( |
| 56 content::BrowserContext* browser_context, | 68 content::BrowserContext* browser_context, |
| 57 content::ProtocolHandlerMap* protocol_handlers, | 69 content::ProtocolHandlerMap* protocol_handlers, |
| 58 content::URLRequestInterceptorScopedVector request_interceptors) | 70 content::URLRequestInterceptorScopedVector request_interceptors) |
| 59 override; | 71 override; |
| 60 bool IsHandledURL(const GURL& url) override; | 72 bool IsHandledURL(const GURL& url) override; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 146 |
| 135 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 147 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
| 136 | 148 |
| 137 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 149 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
| 138 }; | 150 }; |
| 139 | 151 |
| 140 } // namespace shell | 152 } // namespace shell |
| 141 } // namespace chromecast | 153 } // namespace chromecast |
| 142 | 154 |
| 143 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 155 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |