1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "content/renderer/media/webmediaplayer_params.h" 6 7 #include "base/message_loop/message_loop_proxy.h" 8 #include "media/base/audio_renderer_sink.h" 9 #include "media/base/media_log.h" 10 #include "media/filters/gpu_video_accelerator_factories.h" 11 12 namespace content { 13 14 WebMediaPlayerParams::WebMediaPlayerParams( 15 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy, 16 const base::Callback<void(const base::Closure&)>& defer_load_cb, 17 const scoped_refptr<media::AudioRendererSink>& audio_renderer_sink, 18 const scoped_refptr<media::GpuVideoAcceleratorFactories>& gpu_factories, 19 const scoped_refptr<media::MediaLog>& media_log) 20 : message_loop_proxy_(message_loop_proxy), 21 defer_load_cb_(defer_load_cb), 22 audio_renderer_sink_(audio_renderer_sink), 23 gpu_factories_(gpu_factories), 24 media_log_(media_log) { 25 DCHECK(media_log_.get()); 26 } 27 28 WebMediaPlayerParams::~WebMediaPlayerParams() {} 29 30 } // namespace content 31