| 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 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 Loading... |
| 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_ |
| OLD | NEW |