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

Unified Diff: Source/platform/drm/ContentDecryptionModuleSession.cpp

Issue 124253003: Update MediaKeySession events to match latest EME spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename javascript Created 6 years, 11 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: Source/platform/drm/ContentDecryptionModuleSession.cpp
diff --git a/Source/platform/drm/ContentDecryptionModuleSession.cpp b/Source/platform/drm/ContentDecryptionModuleSession.cpp
index 094d302ca04c988fa6fa64bd5ac6cfc56ad95263..a9550aebe151997f42257766d120cb3e50e0df06 100644
--- a/Source/platform/drm/ContentDecryptionModuleSession.cpp
+++ b/Source/platform/drm/ContentDecryptionModuleSession.cpp
@@ -70,19 +70,24 @@ void ContentDecryptionModuleSession::release()
m_session->release();
}
-void ContentDecryptionModuleSession::keyAdded()
+void ContentDecryptionModuleSession::message(const unsigned char* message, size_t messageLength, const blink::WebURL& destinationURL)
{
- m_client->keyAdded();
+ m_client->message(message, messageLength, destinationURL);
}
-void ContentDecryptionModuleSession::keyError(MediaKeyErrorCode errorCode, unsigned long systemCode)
+void ContentDecryptionModuleSession::ready()
{
- m_client->keyError(static_cast<ContentDecryptionModuleSessionClient::MediaKeyErrorCode>(errorCode), systemCode);
+ m_client->ready();
}
-void ContentDecryptionModuleSession::keyMessage(const unsigned char* message, size_t messageLength, const blink::WebURL& destinationURL)
+void ContentDecryptionModuleSession::close()
{
- m_client->keyMessage(message, messageLength, destinationURL);
+ m_client->close();
+}
+
+void ContentDecryptionModuleSession::error(MediaKeyErrorCode errorCode, unsigned long systemCode)
+{
+ m_client->error(static_cast<ContentDecryptionModuleSessionClient::MediaKeyErrorCode>(errorCode), systemCode);
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698