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

Unified Diff: media/blink/webcontentdecryptionmodulesession_impl.h

Issue 2484873002: EME: Make sure sessions are closed before they are destroyed (Closed)
Patch Set: update spec comment Created 4 years, 1 month 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: media/blink/webcontentdecryptionmodulesession_impl.h
diff --git a/media/blink/webcontentdecryptionmodulesession_impl.h b/media/blink/webcontentdecryptionmodulesession_impl.h
index 18db47265a4c1cb093b59daf4893c4bbd2f34c3e..595582beaa54e202eff63a30e64c0120186f3d13 100644
--- a/media/blink/webcontentdecryptionmodulesession_impl.h
+++ b/media/blink/webcontentdecryptionmodulesession_impl.h
@@ -80,6 +80,9 @@ class WebContentDecryptionModuleSessionImpl
// closed() event.
bool is_closed_;
xhwang 2016/11/11 18:52:46 It seems possible that is_closed_ is true but has_
jrummell 2016/11/11 21:14:23 Done.
+ // Keep track of whether close() has been called on this session.
+ bool has_close_been_called_;
+
base::ThreadChecker thread_checker_;
// Since promises will live until they are fired, use a weak reference when
// creating a promise in case this class disappears before the promise

Powered by Google App Engine
This is Rietveld 408576698