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); |
}; |