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

Unified Diff: media/blink/webmediaplayer_params.h

Issue 2204673004: WIP - WebMediaPlayer switch media renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add switching of CdmFactory. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: media/blink/webmediaplayer_params.h
diff --git a/media/blink/webmediaplayer_params.h b/media/blink/webmediaplayer_params.h
index 40413010b508cd9a173c669a6f1849f11bcf3ceb..ebb3235317dc6a170dfcb8d3bebbecfa5c3d1547 100644
--- a/media/blink/webmediaplayer_params.h
+++ b/media/blink/webmediaplayer_params.h
@@ -44,6 +44,9 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
// not the WebMediaPlayer!
typedef base::Callback<int64_t(int64_t)> AdjustAllocatedMemoryCB;
+ // Callback to tell WebMediaPlayerImpl whether remoting CdmFactory is used.
+ using IsRemoteCdmCB = base::Callback<bool()>;
+
// |defer_load_cb|, |audio_renderer_sink|, |compositor_task_runner|, and
// |context_3d_cb| may be null.
WebMediaPlayerParams(
@@ -55,6 +58,7 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
const Context3DCB& context_3d,
const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb,
+ const IsRemoteCdmCB& is_remote_cdm_cb,
blink::WebContentDecryptionModule* initial_cdm,
SurfaceManager* surface_manager,
blink::WebMediaSession* media_session);
@@ -99,6 +103,8 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
const blink::WebMediaSession* media_session() const { return media_session_; }
+ IsRemoteCdmCB is_remote_cdm_cb() const { return is_remote_cdm_cb_; }
+
private:
DeferLoadCB defer_load_cb_;
scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_;
@@ -114,6 +120,8 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
blink::WebMediaSession* media_session_;
+ IsRemoteCdmCB is_remote_cdm_cb_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
};

Powered by Google App Engine
This is Rietveld 408576698