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

Unified Diff: content/renderer/media/webcontentdecryptionmodulesession_impl.cc

Issue 685373003: Stop generating ready and error events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « content/renderer/media/webcontentdecryptionmodulesession_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webcontentdecryptionmodulesession_impl.cc
diff --git a/content/renderer/media/webcontentdecryptionmodulesession_impl.cc b/content/renderer/media/webcontentdecryptionmodulesession_impl.cc
index d9bb455254f9ac02d935511dc32d6a6053ad7645..871c31fb3ee9cb64495227d244ae9a9a1b4b5af1 100644
--- a/content/renderer/media/webcontentdecryptionmodulesession_impl.cc
+++ b/content/renderer/media/webcontentdecryptionmodulesession_impl.cc
@@ -184,10 +184,6 @@ void WebContentDecryptionModuleSessionImpl::OnSessionExpirationUpdate(
client_->expirationChanged(new_expiry_time.ToJsTime());
}
-void WebContentDecryptionModuleSessionImpl::OnSessionReady() {
- client_->ready();
-}
-
void WebContentDecryptionModuleSessionImpl::OnSessionClosed() {
if (is_closed_)
return;
@@ -196,25 +192,6 @@ void WebContentDecryptionModuleSessionImpl::OnSessionClosed() {
client_->close();
}
-void WebContentDecryptionModuleSessionImpl::OnSessionError(
- media::MediaKeys::Exception exception_code,
- uint32 system_code,
- const std::string& error_message) {
- // Convert |exception_code| back to MediaKeyErrorCode if possible.
- // TODO(jrummell): Update this conversion when promises flow
- // back into blink:: (as blink:: will have its own error definition).
- switch (exception_code) {
- case media::MediaKeys::CLIENT_ERROR:
- client_->error(Client::MediaKeyErrorCodeClient, system_code);
- break;
- default:
- // This will include all other CDM4 errors and any error generated
- // by CDM5 or later.
- client_->error(Client::MediaKeyErrorCodeUnknown, system_code);
- break;
- }
-}
-
blink::WebContentDecryptionModuleResult::SessionStatus
WebContentDecryptionModuleSessionImpl::OnSessionInitialized(
const std::string& web_session_id) {
« no previous file with comments | « content/renderer/media/webcontentdecryptionmodulesession_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698