| 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 #ifndef WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_ |
| 6 #define WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "media/filters/gpu_video_decoder.h" | 9 #include "media/filters/gpu_video_decoder.h" |
| 10 | 10 |
| 11 namespace base { | 11 namespace base { |
| 12 class MessageLoopProxy; | 12 class MessageLoopProxy; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace media { | 15 namespace media { |
| 16 class AudioRendererSink; | 16 class AudioRendererSink; |
| 17 class MediaLog; | 17 class MediaLog; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace webkit_media { | 20 namespace content { |
| 21 | 21 |
| 22 // Holds parameters for constructing WebMediaPlayerImpl without having | 22 // Holds parameters for constructing WebMediaPlayerImpl without having |
| 23 // to plumb arguments through various abstraction layers. | 23 // to plumb arguments through various abstraction layers. |
| 24 class WebMediaPlayerParams { | 24 class WebMediaPlayerParams { |
| 25 public: | 25 public: |
| 26 // |message_loop_proxy| and |media_log| are the only required parameters; | 26 // |message_loop_proxy| and |media_log| are the only required parameters; |
| 27 // all others may be null. | 27 // all others may be null. |
| 28 WebMediaPlayerParams( | 28 WebMediaPlayerParams( |
| 29 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy, | 29 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy, |
| 30 const base::Callback<void(const base::Closure&)>& defer_load_cb, | 30 const base::Callback<void(const base::Closure&)>& defer_load_cb, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 59 base::Callback<void(const base::Closure&)> defer_load_cb_; | 59 base::Callback<void(const base::Closure&)> defer_load_cb_; |
| 60 scoped_refptr<media::AudioRendererSink> audio_renderer_sink_; | 60 scoped_refptr<media::AudioRendererSink> audio_renderer_sink_; |
| 61 scoped_refptr<media::GpuVideoDecoder::Factories> gpu_factories_; | 61 scoped_refptr<media::GpuVideoDecoder::Factories> gpu_factories_; |
| 62 scoped_refptr<media::MediaLog> media_log_; | 62 scoped_refptr<media::MediaLog> media_log_; |
| 63 | 63 |
| 64 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams); | 64 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace media | 67 } // namespace media |
| 68 | 68 |
| 69 #endif // WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_ | 69 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_ |
| OLD | NEW |