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 20 matching lines...) Expand all Loading... |
31 #include "core/dom/DOMArrayPiece.h" | 31 #include "core/dom/DOMArrayPiece.h" |
32 #include "core/dom/DOMException.h" | 32 #include "core/dom/DOMException.h" |
33 #include "modules/EventTargetModules.h" | 33 #include "modules/EventTargetModules.h" |
34 #include "platform/Timer.h" | 34 #include "platform/Timer.h" |
35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
36 #include "public/platform/WebContentDecryptionModuleSession.h" | 36 #include "public/platform/WebContentDecryptionModuleSession.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class GenericEventQueue; | 40 class GenericEventQueue; |
41 class MediaKeyError; | |
42 class MediaKeys; | 41 class MediaKeys; |
43 class WebString; | |
44 | 42 |
45 // References are held by JS only. However, even if all JS references are | 43 // References are held by JS only. However, even if all JS references are |
46 // dropped, it won't be garbage collected until close event received or | 44 // dropped, it won't be garbage collected until close event received or |
47 // MediaKeys goes away (as determined by the validity of a WeakPtr). This allows | 45 // MediaKeys goes away (as determined by the validity of a WeakPtr). This allows |
48 // the CDM to continue to fire events for this session, as long as the session | 46 // the CDM to continue to fire events for this session, as long as the session |
49 // is open. | 47 // is open. |
50 // | 48 // |
51 // WeakPtr<MediaKeys> is used instead of having MediaKeys and MediaKeySession | 49 // WeakPtr<MediaKeys> is used instead of having MediaKeys and MediaKeySession |
52 // keep references to each other, and then having to inform the other object | 50 // keep references to each other, and then having to inform the other object |
53 // when it gets destroyed. | 51 // when it gets destroyed. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 typedef ScriptPromiseProperty<Member<MediaKeySession>, ToV8UndefinedGenerato
r, RefPtrWillBeMember<DOMException> > ClosedPromise; | 127 typedef ScriptPromiseProperty<Member<MediaKeySession>, ToV8UndefinedGenerato
r, RefPtrWillBeMember<DOMException> > ClosedPromise; |
130 Member<ClosedPromise> m_closedPromise; | 128 Member<ClosedPromise> m_closedPromise; |
131 | 129 |
132 HeapDeque<Member<PendingAction> > m_pendingActions; | 130 HeapDeque<Member<PendingAction> > m_pendingActions; |
133 Timer<MediaKeySession> m_actionTimer; | 131 Timer<MediaKeySession> m_actionTimer; |
134 }; | 132 }; |
135 | 133 |
136 } // namespace blink | 134 } // namespace blink |
137 | 135 |
138 #endif // MediaKeySession_h | 136 #endif // MediaKeySession_h |
OLD | NEW |