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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 // The previously reserved and accepted HTMLMediaElement is no longer | 87 // The previously reserved and accepted HTMLMediaElement is no longer |
88 // using this object. | 88 // using this object. |
89 void clearMediaElement(); | 89 void clearMediaElement(); |
90 | 90 |
91 WebContentDecryptionModule* contentDecryptionModule(); | 91 WebContentDecryptionModule* contentDecryptionModule(); |
92 | 92 |
93 DECLARE_VIRTUAL_TRACE(); | 93 DECLARE_VIRTUAL_TRACE(); |
94 | 94 |
95 // ContextLifecycleObserver implementation. | 95 // ContextLifecycleObserver implementation. |
96 // FIXME: This class could derive from ContextLifecycleObserver | |
97 // again (http://crbug.com/483722). | |
98 void contextDestroyed() override; | 96 void contextDestroyed() override; |
99 | 97 |
100 // ScriptWrappable implementation. | 98 // ScriptWrappable implementation. |
101 bool hasPendingActivity() const final; | 99 bool hasPendingActivity() const final; |
102 | 100 |
103 private: | 101 private: |
104 MediaKeys( | 102 MediaKeys( |
105 ExecutionContext*, | 103 ExecutionContext*, |
106 const WebVector<WebEncryptedMediaSessionType>& supportedSessionTypes, | 104 const WebVector<WebEncryptedMediaSessionType>& supportedSessionTypes, |
107 std::unique_ptr<WebContentDecryptionModule>); | 105 std::unique_ptr<WebContentDecryptionModule>); |
(...skipping 19 matching lines...) Expand all Loading... |
127 // object will be prevented until the setMediaKeys() completes. | 125 // object will be prevented until the setMediaKeys() completes. |
128 bool m_reservedForMediaElement; | 126 bool m_reservedForMediaElement; |
129 | 127 |
130 HeapDeque<Member<PendingAction>> m_pendingActions; | 128 HeapDeque<Member<PendingAction>> m_pendingActions; |
131 Timer<MediaKeys> m_timer; | 129 Timer<MediaKeys> m_timer; |
132 }; | 130 }; |
133 | 131 |
134 } // namespace blink | 132 } // namespace blink |
135 | 133 |
136 #endif // MediaKeys_h | 134 #endif // MediaKeys_h |
OLD | NEW |