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