| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // only WeakMember<> references remain to the MediaKeys object, the MediaKeys | 56 // only WeakMember<> references remain to the MediaKeys object, the MediaKeys |
| 57 // object will be finalized and the WeakMember<> references will be cleared | 57 // object will be finalized and the WeakMember<> references will be cleared |
| 58 // out(zeroed) by the garbage collector. | 58 // out(zeroed) by the garbage collector. |
| 59 // | 59 // |
| 60 // Because this object controls the lifetime of the | 60 // Because this object controls the lifetime of the |
| 61 // WebContentDecryptionModuleSession, it may outlive any JavaScript references | 61 // WebContentDecryptionModuleSession, it may outlive any JavaScript references |
| 62 // as long as the MediaKeys object is alive. | 62 // as long as the MediaKeys object is alive. |
| 63 // The WebContentDecryptionModuleSession has the same lifetime as this object. | 63 // The WebContentDecryptionModuleSession has the same lifetime as this object. |
| 64 class MediaKeySession final | 64 class MediaKeySession final |
| 65 : public EventTargetWithInlineData, | 65 : public EventTargetWithInlineData, |
| 66 public ActiveScriptWrappable, | 66 public ActiveScriptWrappable<MediaKeySession>, |
| 67 public SuspendableObject, | 67 public SuspendableObject, |
| 68 private WebContentDecryptionModuleSession::Client { | 68 private WebContentDecryptionModuleSession::Client { |
| 69 DEFINE_WRAPPERTYPEINFO(); | 69 DEFINE_WRAPPERTYPEINFO(); |
| 70 USING_GARBAGE_COLLECTED_MIXIN(MediaKeySession); | 70 USING_GARBAGE_COLLECTED_MIXIN(MediaKeySession); |
| 71 USING_PRE_FINALIZER(MediaKeySession, dispose); | 71 USING_PRE_FINALIZER(MediaKeySession, dispose); |
| 72 | 72 |
| 73 public: | 73 public: |
| 74 static MediaKeySession* create(ScriptState*, | 74 static MediaKeySession* create(ScriptState*, |
| 75 MediaKeys*, | 75 MediaKeys*, |
| 76 WebEncryptedMediaSessionType); | 76 WebEncryptedMediaSessionType); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 ClosedPromise; | 158 ClosedPromise; |
| 159 Member<ClosedPromise> m_closedPromise; | 159 Member<ClosedPromise> m_closedPromise; |
| 160 | 160 |
| 161 HeapDeque<Member<PendingAction>> m_pendingActions; | 161 HeapDeque<Member<PendingAction>> m_pendingActions; |
| 162 Timer<MediaKeySession> m_actionTimer; | 162 Timer<MediaKeySession> m_actionTimer; |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 } // namespace blink | 165 } // namespace blink |
| 166 | 166 |
| 167 #endif // MediaKeySession_h | 167 #endif // MediaKeySession_h |
| OLD | NEW |