Chromium Code Reviews| 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 // Factory to create a MediaPipelineDevice. | |
|
gunsch
2015/06/04 22:57:45
Comment should describe what the method does, e.g.
| |
| 57 scoped_ptr<media::MediaPipelineDevice> PlatformCreateMediaPipelineDevice( | |
|
gunsch
2015/06/04 22:57:45
guard with #if !OS_ANDROID
| |
| 58 const media::MediaPipelineDeviceParams& params); | |
| 59 | |
| 51 // content::ContentBrowserClient implementation: | 60 // content::ContentBrowserClient implementation: |
| 52 content::BrowserMainParts* CreateBrowserMainParts( | 61 content::BrowserMainParts* CreateBrowserMainParts( |
| 53 const content::MainFunctionParams& parameters) override; | 62 const content::MainFunctionParams& parameters) override; |
| 54 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; | 63 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; |
| 55 net::URLRequestContextGetter* CreateRequestContext( | 64 net::URLRequestContextGetter* CreateRequestContext( |
| 56 content::BrowserContext* browser_context, | 65 content::BrowserContext* browser_context, |
| 57 content::ProtocolHandlerMap* protocol_handlers, | 66 content::ProtocolHandlerMap* protocol_handlers, |
| 58 content::URLRequestInterceptorScopedVector request_interceptors) | 67 content::URLRequestInterceptorScopedVector request_interceptors) |
| 59 override; | 68 override; |
| 60 bool IsHandledURL(const GURL& url) override; | 69 bool IsHandledURL(const GURL& url) override; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 | 143 |
| 135 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 144 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
| 136 | 145 |
| 137 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 146 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
| 138 }; | 147 }; |
| 139 | 148 |
| 140 } // namespace shell | 149 } // namespace shell |
| 141 } // namespace chromecast | 150 } // namespace chromecast |
| 142 | 151 |
| 143 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 152 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |