| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 96 // FIXME: This class could derive from ContextLifecycleObserver |
| 97 // again (http://crbug.com/483722). | 97 // again (http://crbug.com/483722). |
| 98 void contextDestroyed() override; | 98 void contextDestroyed(ExecutionContext*) override; |
| 99 | 99 |
| 100 // ScriptWrappable implementation. | 100 // ScriptWrappable implementation. |
| 101 bool hasPendingActivity() const final; | 101 bool hasPendingActivity() const final; |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 MediaKeys( | 104 MediaKeys( |
| 105 ExecutionContext*, | 105 ExecutionContext*, |
| 106 const WebVector<WebEncryptedMediaSessionType>& supportedSessionTypes, | 106 const WebVector<WebEncryptedMediaSessionType>& supportedSessionTypes, |
| 107 std::unique_ptr<WebContentDecryptionModule>); | 107 std::unique_ptr<WebContentDecryptionModule>); |
| 108 class PendingAction; | 108 class PendingAction; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 127 // object will be prevented until the setMediaKeys() completes. | 127 // object will be prevented until the setMediaKeys() completes. |
| 128 bool m_reservedForMediaElement; | 128 bool m_reservedForMediaElement; |
| 129 | 129 |
| 130 HeapDeque<Member<PendingAction>> m_pendingActions; | 130 HeapDeque<Member<PendingAction>> m_pendingActions; |
| 131 Timer<MediaKeys> m_timer; | 131 Timer<MediaKeys> m_timer; |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace blink | 134 } // namespace blink |
| 135 | 135 |
| 136 #endif // MediaKeys_h | 136 #endif // MediaKeys_h |
| OLD | NEW |