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

Unified Diff: media/cdm/aes_decryptor.cc

Issue 2108033002: EME: Clear Key CDM now generates keystatuseschange event on close() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/aes_decryptor.cc
diff --git a/media/cdm/aes_decryptor.cc b/media/cdm/aes_decryptor.cc
index af7182f1097ab3fdbaeebe8180c97bb95d690802..f01fe8b10593645d130095d8ae55757083b7510d 100644
--- a/media/cdm/aes_decryptor.cc
+++ b/media/cdm/aes_decryptor.cc
@@ -411,6 +411,13 @@ void AesDecryptor::CloseSession(const std::string& session_id,
// Close the session.
DeleteKeysForSession(session_id);
promise->resolve();
ddorwin 2016/06/30 06:51:24 This is supposed to be last. https://w3c.github.io
jrummell 2016/07/01 00:01:22 Agreed. However, since we're not currently using a
+
+ // Update key statuses. All keys are gone, so it's an empty set.
ddorwin 2016/06/30 06:51:24 nit: "gone" sounds informal. I suggest either copy
jrummell 2016/07/01 00:01:22 Done.
+ session_keys_change_cb_.Run(session_id, false, CdmKeysInfo());
+
+ // Update expiration time to NaN. (http://crbug.com/624192)
+
+ // Resolve the closed attribute.
session_closed_cb_.Run(session_id);
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698