Index: public/platform/WebMediaPlayer.h |
diff --git a/public/platform/WebMediaPlayer.h b/public/platform/WebMediaPlayer.h |
index 497bac55359bd476ca495bb9ae6a02877d729a8e..bde1e6ac5f3c31646fff7859034151696b668754 100644 |
--- a/public/platform/WebMediaPlayer.h |
+++ b/public/platform/WebMediaPlayer.h |
@@ -32,6 +32,7 @@ |
#define WebMediaPlayer_h |
#include "WebCanvas.h" |
+#include "WebContentDecryptionModule.h" |
#include "WebMediaSource.h" |
#include "WebString.h" |
#include "WebTimeRange.h" |
@@ -154,7 +155,9 @@ public: |
virtual MediaKeyException generateKeyRequest(const WebString& keySystem, const unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionKeySystemNotSupported; } |
virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataLength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } |
virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } |
- virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm) { } |
+ virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, WebContentDecryptionModuleResult result) { result.completeWithError(WebContentDecryptionModuleExceptionNotSupportedError, 0, "ERROR"); } |
+ // Used when loading media and no pipeline/decoder attached yet. |
+ virtual void setContentDecryptionModuleSync(WebContentDecryptionModule* cdm) { } |
// Sets the poster image URL. |
virtual void setPoster(const WebURL& poster) { } |