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

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

Issue 1430063003: use MEDIA_BLINK_EXPORT in media/blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no (c) Created 5 years, 1 month 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
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/blink/webmediaplayer_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Callback to tell V8 about the amount of memory used by the WebMediaPlayer 36 // Callback to tell V8 about the amount of memory used by the WebMediaPlayer
37 // instance. The input parameter is the delta in bytes since the last call to 37 // instance. The input parameter is the delta in bytes since the last call to
38 // AdjustAllocatedMemoryCB and the return value is the total number of bytes 38 // AdjustAllocatedMemoryCB and the return value is the total number of bytes
39 // used by objects external to V8. Note: this value includes things that are 39 // used by objects external to V8. Note: this value includes things that are
40 // not the WebMediaPlayer! 40 // not the WebMediaPlayer!
41 typedef base::Callback<int64_t(int64_t)> AdjustAllocatedMemoryCB; 41 typedef base::Callback<int64_t(int64_t)> AdjustAllocatedMemoryCB;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // TODO(xhwang): Remove after prefixed EME API support is removed. 104 // TODO(xhwang): Remove after prefixed EME API support is removed.
105 MediaPermission* media_permission_; 105 MediaPermission* media_permission_;
106 blink::WebContentDecryptionModule* initial_cdm_; 106 blink::WebContentDecryptionModule* initial_cdm_;
107 107
108 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams); 108 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
109 }; 109 };
110 110
111 } // namespace media 111 } // namespace media
112 112
113 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 113 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/blink/webmediaplayer_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698