Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Side by Side Diff: webkit/renderer/media/webmediaplayer_params.h

Issue 18261007: Migrate webkit/renderer/media/ to content/renderer/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win64 AGAIN Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 #ifndef WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_
6 #define WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "media/filters/gpu_video_decoder.h"
10
11 namespace base {
12 class MessageLoopProxy;
13 }
14
15 namespace media {
16 class AudioRendererSink;
17 class MediaLog;
18 }
19
20 namespace webkit_media {
21
22 // Holds parameters for constructing WebMediaPlayerImpl without having
23 // to plumb arguments through various abstraction layers.
24 class WebMediaPlayerParams {
25 public:
26 // |message_loop_proxy| and |media_log| are the only required parameters;
27 // all others may be null.
28 WebMediaPlayerParams(
29 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy,
30 const base::Callback<void(const base::Closure&)>& defer_load_cb,
31 const scoped_refptr<media::AudioRendererSink>& audio_renderer_sink,
32 const scoped_refptr<media::GpuVideoDecoder::Factories>& gpu_factories,
33 const scoped_refptr<media::MediaLog>& media_log);
34 ~WebMediaPlayerParams();
35
36 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy() const {
37 return message_loop_proxy_;
38 }
39
40 base::Callback<void(const base::Closure&)> defer_load_cb() const {
41 return defer_load_cb_;
42 }
43
44 const scoped_refptr<media::AudioRendererSink>& audio_renderer_sink() const {
45 return audio_renderer_sink_;
46 }
47
48 const scoped_refptr<media::GpuVideoDecoder::Factories>&
49 gpu_factories() const {
50 return gpu_factories_;
51 }
52
53 const scoped_refptr<media::MediaLog>& media_log() const {
54 return media_log_;
55 }
56
57 private:
58 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
59 base::Callback<void(const base::Closure&)> defer_load_cb_;
60 scoped_refptr<media::AudioRendererSink> audio_renderer_sink_;
61 scoped_refptr<media::GpuVideoDecoder::Factories> gpu_factories_;
62 scoped_refptr<media::MediaLog> media_log_;
63
64 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
65 };
66
67 } // namespace media
68
69 #endif // WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_
OLDNEW
« no previous file with comments | « webkit/renderer/media/webmediaplayer_ms.cc ('k') | webkit/renderer/media/webmediaplayer_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698