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

Unified Diff: content/renderer/media/webmediaplayer_impl.h

Issue 105143010: Connect WebMediaPlayerImpl to WebContentDecryptionModuleImpl for EME WD (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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: content/renderer/media/webmediaplayer_impl.h
diff --git a/content/renderer/media/webmediaplayer_impl.h b/content/renderer/media/webmediaplayer_impl.h
index 50ee39b14291eec5ec4097a7a84626d53098a756..099cd752430bec47b4e83912bc42687780f3f831 100644
--- a/content/renderer/media/webmediaplayer_impl.h
+++ b/content/renderer/media/webmediaplayer_impl.h
@@ -47,6 +47,7 @@
class RenderAudioSourceProvider;
namespace blink {
+class WebContentDecryptionModule;
class WebFrame;
}
@@ -175,6 +176,8 @@ class WebMediaPlayerImpl
const blink::WebString& key_system,
const blink::WebString& session_id);
+ virtual void mediaKeysChanged(blink::WebContentDecryptionModule* cdm);
+
// content::RenderViewObserver implementation.
virtual void OnDestruct() OVERRIDE;
@@ -373,6 +376,10 @@ class WebMediaPlayerImpl
// Text track objects get a unique index value when they're created.
int text_track_index_;
+ // Non-owned pointer to the CDM. Determined at initialization, but can be
+ // updated via calls to mediaKeysChanged().
+ blink::WebContentDecryptionModule* cdm_;
+
DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
};
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_impl.cc » ('j') | content/renderer/media/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698