| Index: Source/platform/exported/WebContentDecryptionModuleSession.cpp
|
| diff --git a/Source/platform/exported/WebContentDecryptionModuleSession.cpp b/Source/platform/exported/WebContentDecryptionModuleSession.cpp
|
| index 580c114905467077ffd16dd8a546c4a6d63980a9..cd957495e5c0fc1506e7d32ae5457516d0b5014d 100644
|
| --- a/Source/platform/exported/WebContentDecryptionModuleSession.cpp
|
| +++ b/Source/platform/exported/WebContentDecryptionModuleSession.cpp
|
| @@ -32,6 +32,45 @@ WebContentDecryptionModuleSession::~WebContentDecryptionModuleSession()
|
| {
|
| }
|
|
|
| +// FIXME: remove once Chromium overrides this method.
|
| +void WebContentDecryptionModuleSession::initializeNewSession(WebEncryptedMediaInitDataType initDataType, const unsigned char* initData, size_t initDataLength, WebEncryptedMediaSessionType sessionType, WebContentDecryptionModuleResult result)
|
| +{
|
| + WebString initDataTypeString;
|
| + switch (initDataType) {
|
| + case WebEncryptedMediaInitDataType::Cenc:
|
| + initDataTypeString = "cenc";
|
| + break;
|
| + case WebEncryptedMediaInitDataType::Keyids:
|
| + initDataTypeString = "keyids";
|
| + break;
|
| + case WebEncryptedMediaInitDataType::Webm:
|
| + initDataTypeString = "webm";
|
| + break;
|
| + case WebEncryptedMediaInitDataType::Unknown:
|
| + ASSERT_NOT_REACHED();
|
| + initDataTypeString = WebString();
|
| + break;
|
| + }
|
| +
|
| + WebString sessionTypeString;
|
| + switch (sessionType) {
|
| + case WebEncryptedMediaSessionType::Temporary:
|
| + sessionTypeString = "temporary";
|
| + break;
|
| + case WebEncryptedMediaSessionType::PersistentLicense:
|
| + sessionTypeString = "persistent-license";
|
| + break;
|
| + case WebEncryptedMediaSessionType::PersistentReleaseMessage:
|
| + sessionTypeString = "persistent-release-message";
|
| + break;
|
| + case WebEncryptedMediaSessionType::Unknown:
|
| + sessionTypeString = WebString();
|
| + break;
|
| + }
|
| +
|
| + initializeNewSession(initDataTypeString, initData, initDataLength, sessionTypeString, result);
|
| +}
|
| +
|
| WebContentDecryptionModuleSession::Client::~Client()
|
| {
|
| }
|
|
|