// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromecast/browser/cast_content_browser_client.h" #include "base/memory/scoped_ptr.h" #include "chromecast/media/cma/backend/media_pipeline_device.h" #include "content/public/browser/browser_message_filter.h" #include "media/audio/audio_manager_factory.h" namespace chromecast { namespace shell { // static scoped_ptr CastContentBrowserClient::Create() { return make_scoped_ptr(new CastContentBrowserClient()); } void CastContentBrowserClient::PlatformAppendExtraCommandLineSwitches( base::CommandLine* command_line) { } std::vector> CastContentBrowserClient::PlatformGetBrowserMessageFilters() { return std::vector>(); } scoped_ptr<::media::AudioManagerFactory> CastContentBrowserClient::PlatformCreateAudioManagerFactory() { // Return nullptr. The factory will not be set, and the statically linked // implementation of AudioManager will be used. return scoped_ptr<::media::AudioManagerFactory>(); } #if !defined(OS_ANDROID) scoped_ptr CastContentBrowserClient::PlatformCreateMediaPipelineDevice( const media::MediaPipelineDeviceParams& params) { return media::CreateMediaPipelineDevice(params); } #endif } // namespace shell } // namespace chromecast