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

Side by Side Diff: media/blink/webmediaplayer_params.h

Issue 1399603003: Tie multibuffers to URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_cache
Patch Set: added MEDIA_BLINK_EXPORT Created 5 years, 2 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
OLDNEW
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 MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/media_export.h" 10 #include "media/blink/media_blink_export.h"
11 #include "media/filters/context_3d.h" 11 #include "media/filters/context_3d.h"
12 12
13 namespace base { 13 namespace base {
14 class SingleThreadTaskRunner; 14 class SingleThreadTaskRunner;
15 class TaskRunner; 15 class TaskRunner;
16 } 16 }
17 17
18 namespace blink { 18 namespace blink {
19 class WebContentDecryptionModule; 19 class WebContentDecryptionModule;
20 class WebMediaPlayerClient; 20 class WebMediaPlayerClient;
21 } 21 }
22 22
23 namespace media { 23 namespace media {
24 24
25 class AudioRendererSink; 25 class AudioRendererSink;
26 class MediaLog; 26 class MediaLog;
27 class MediaPermission; 27 class MediaPermission;
28 28
29 // Holds parameters for constructing WebMediaPlayerImpl without having 29 // Holds parameters for constructing WebMediaPlayerImpl without having
30 // to plumb arguments through various abstraction layers. 30 // to plumb arguments through various abstraction layers.
31 class MEDIA_EXPORT WebMediaPlayerParams { 31 class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
32 public: 32 public:
33 typedef base::Callback<void(const base::Closure&)> DeferLoadCB; 33 typedef base::Callback<void(const base::Closure&)> DeferLoadCB;
34 typedef base::Callback<Context3D()> Context3DCB; 34 typedef base::Callback<Context3D()> Context3DCB;
35 35
36 // |defer_load_cb|, |audio_renderer_sink|, |compositor_task_runner|, and 36 // |defer_load_cb|, |audio_renderer_sink|, |compositor_task_runner|, and
37 // |context_3d_cb| may be null. 37 // |context_3d_cb| may be null.
38 WebMediaPlayerParams( 38 WebMediaPlayerParams(
39 const DeferLoadCB& defer_load_cb, 39 const DeferLoadCB& defer_load_cb,
40 const scoped_refptr<AudioRendererSink>& audio_renderer_sink, 40 const scoped_refptr<AudioRendererSink>& audio_renderer_sink,
41 const scoped_refptr<MediaLog>& media_log, 41 const scoped_refptr<MediaLog>& media_log,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // TODO(xhwang): Remove after prefixed EME API support is removed. 92 // TODO(xhwang): Remove after prefixed EME API support is removed.
93 MediaPermission* media_permission_; 93 MediaPermission* media_permission_;
94 blink::WebContentDecryptionModule* initial_cdm_; 94 blink::WebContentDecryptionModule* initial_cdm_;
95 95
96 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams); 96 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
97 }; 97 };
98 98
99 } // namespace media 99 } // namespace media
100 100
101 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 101 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698