OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "chromecast/browser/cast_content_browser_client.h" | 5 #include "chromecast/browser/cast_content_browser_client.h" |
6 | 6 |
| 7 #include "chromecast/media/cma/backend/media_pipeline_device.h" |
7 #include "content/public/browser/browser_message_filter.h" | 8 #include "content/public/browser/browser_message_filter.h" |
8 #include "media/audio/audio_manager_factory.h" | 9 #include "media/audio/audio_manager_factory.h" |
9 | 10 |
10 namespace chromecast { | 11 namespace chromecast { |
11 namespace shell { | 12 namespace shell { |
12 | 13 |
13 void CastContentBrowserClient::PlatformAppendExtraCommandLineSwitches( | 14 void CastContentBrowserClient::PlatformAppendExtraCommandLineSwitches( |
14 base::CommandLine* command_line) { | 15 base::CommandLine* command_line) { |
15 } | 16 } |
16 | 17 |
17 std::vector<scoped_refptr<content::BrowserMessageFilter>> | 18 std::vector<scoped_refptr<content::BrowserMessageFilter>> |
18 CastContentBrowserClient::PlatformGetBrowserMessageFilters() { | 19 CastContentBrowserClient::PlatformGetBrowserMessageFilters() { |
19 return std::vector<scoped_refptr<content::BrowserMessageFilter>>(); | 20 return std::vector<scoped_refptr<content::BrowserMessageFilter>>(); |
20 } | 21 } |
21 | 22 |
22 scoped_ptr<::media::AudioManagerFactory> | 23 scoped_ptr<::media::AudioManagerFactory> |
23 CastContentBrowserClient::PlatformCreateAudioManagerFactory() { | 24 CastContentBrowserClient::PlatformCreateAudioManagerFactory() { |
24 // Return nullptr. The factory will not be set, and the statically linked | 25 // Return nullptr. The factory will not be set, and the statically linked |
25 // implementation of AudioManager will be used. | 26 // implementation of AudioManager will be used. |
26 return scoped_ptr<::media::AudioManagerFactory>(); | 27 return scoped_ptr<::media::AudioManagerFactory>(); |
27 } | 28 } |
28 | 29 |
| 30 #if !defined(OS_ANDROID) |
| 31 scoped_ptr<media::MediaPipelineDevice> |
| 32 CastContentBrowserClient::PlatformCreateMediaPipelineDevice( |
| 33 const media::MediaPipelineDeviceParams& params) { |
| 34 return media::CreateMediaPipelineDevice(params); |
| 35 } |
| 36 #endif |
| 37 |
29 } // namespace shell | 38 } // namespace shell |
30 } // namespace chromecast | 39 } // namespace chromecast |
OLD | NEW |