| Index: media/blink/webcontentdecryptionmodulesession_impl.h
|
| diff --git a/media/blink/webcontentdecryptionmodulesession_impl.h b/media/blink/webcontentdecryptionmodulesession_impl.h
|
| index 18db47265a4c1cb093b59daf4893c4bbd2f34c3e..6824e6cc01eac1d1cf43377f13b05d3e0b8de6bb 100644
|
| --- a/media/blink/webcontentdecryptionmodulesession_impl.h
|
| +++ b/media/blink/webcontentdecryptionmodulesession_impl.h
|
| @@ -75,9 +75,14 @@ class WebContentDecryptionModuleSessionImpl
|
| // promise.
|
| std::string session_id_;
|
|
|
| - // Don't pass more than 1 close() event to blink::
|
| - // TODO(jrummell): Remove this once blink tests handle close() promise and
|
| - // closed() event.
|
| + // Keep track of whether the session has been closed or not. The session
|
| + // may be closed as a result of an application calling close(), or the CDM
|
| + // may close the session at any point.
|
| + // https://w3c.github.io/encrypted-media/#session-closed
|
| + // |has_close_been_called_| is used to keep track of whether close() has
|
| + // been called or not. |is_closed_| is used to keep track of whether the
|
| + // close event has been received or not.
|
| + bool has_close_been_called_;
|
| bool is_closed_;
|
|
|
| base::ThreadChecker thread_checker_;
|
|
|