OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 "media/blink/webmediaplayer_params.h" | 5 #include "media/blink/webmediaplayer_params.h" |
6 | 6 |
7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
8 #include "base/task_runner.h" | 8 #include "base/task_runner.h" |
9 #include "media/base/audio_renderer_sink.h" | 9 #include "media/base/audio_renderer_sink.h" |
10 #include "media/base/media_log.h" | 10 #include "media/base/media_log.h" |
11 | 11 |
12 namespace media { | 12 namespace media { |
13 | 13 |
14 WebMediaPlayerParams::WebMediaPlayerParams( | 14 WebMediaPlayerParams::WebMediaPlayerParams( |
15 const DeferLoadCB& defer_load_cb, | 15 const DeferLoadCB& defer_load_cb, |
16 const scoped_refptr<RestartableAudioRendererSink>& audio_renderer_sink, | 16 const scoped_refptr<RestartableAudioRendererSink>& audio_renderer_sink, |
17 const scoped_refptr<MediaLog>& media_log, | 17 const scoped_refptr<MediaLog>& media_log, |
18 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, | 18 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, |
19 const scoped_refptr<base::TaskRunner>& worker_task_runner, | 19 const scoped_refptr<base::TaskRunner>& worker_task_runner, |
20 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, | 20 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, |
21 const Context3DCB& context_3d_cb, | 21 const Context3DCB& context_3d_cb, |
22 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb, | 22 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb, |
23 MediaPermission* media_permission, | |
24 blink::WebContentDecryptionModule* initial_cdm, | 23 blink::WebContentDecryptionModule* initial_cdm, |
25 SurfaceManager* surface_manager, | 24 SurfaceManager* surface_manager, |
26 blink::WebMediaSession* media_session) | 25 blink::WebMediaSession* media_session) |
27 : defer_load_cb_(defer_load_cb), | 26 : defer_load_cb_(defer_load_cb), |
28 audio_renderer_sink_(audio_renderer_sink), | 27 audio_renderer_sink_(audio_renderer_sink), |
29 media_log_(media_log), | 28 media_log_(media_log), |
30 media_task_runner_(media_task_runner), | 29 media_task_runner_(media_task_runner), |
31 worker_task_runner_(worker_task_runner), | 30 worker_task_runner_(worker_task_runner), |
32 compositor_task_runner_(compositor_task_runner), | 31 compositor_task_runner_(compositor_task_runner), |
33 context_3d_cb_(context_3d_cb), | 32 context_3d_cb_(context_3d_cb), |
34 adjust_allocated_memory_cb_(adjust_allocated_memory_cb), | 33 adjust_allocated_memory_cb_(adjust_allocated_memory_cb), |
35 media_permission_(media_permission), | |
36 initial_cdm_(initial_cdm), | 34 initial_cdm_(initial_cdm), |
37 surface_manager_(surface_manager), | 35 surface_manager_(surface_manager), |
38 media_session_(media_session) {} | 36 media_session_(media_session) {} |
39 | 37 |
40 WebMediaPlayerParams::~WebMediaPlayerParams() {} | 38 WebMediaPlayerParams::~WebMediaPlayerParams() {} |
41 | 39 |
42 } // namespace media | 40 } // namespace media |
OLD | NEW |