| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef HTMLMediaElementEncryptedMedia_h | 5 #ifndef HTMLMediaElementEncryptedMedia_h |
| 6 #define HTMLMediaElementEncryptedMedia_h | 6 #define HTMLMediaElementEncryptedMedia_h |
| 7 | 7 |
| 8 #include "core/EventTypeNames.h" | 8 #include "core/EventTypeNames.h" |
| 9 #include "core/dom/DOMTypedArray.h" | 9 #include "core/dom/DOMTypedArray.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 static void keyMessage(HTMLMediaElement&, const String& keySystem, const Str
ing& sessionId, const unsigned char* message, unsigned messageLength, const WebU
RL& defaultURL); | 46 static void keyMessage(HTMLMediaElement&, const String& keySystem, const Str
ing& sessionId, const unsigned char* message, unsigned messageLength, const WebU
RL& defaultURL); |
| 47 static void encrypted(HTMLMediaElement&, const String& initDataType, const u
nsigned char* initData, unsigned initDataLength); | 47 static void encrypted(HTMLMediaElement&, const String& initDataType, const u
nsigned char* initData, unsigned initDataLength); |
| 48 static void didBlockPlaybackWaitingForKey(HTMLMediaElement&); | 48 static void didBlockPlaybackWaitingForKey(HTMLMediaElement&); |
| 49 static void didResumePlaybackBlockedForKey(HTMLMediaElement&); | 49 static void didResumePlaybackBlockedForKey(HTMLMediaElement&); |
| 50 static void playerDestroyed(HTMLMediaElement&); | 50 static void playerDestroyed(HTMLMediaElement&); |
| 51 static WebContentDecryptionModule* contentDecryptionModule(HTMLMediaElement&
); | 51 static WebContentDecryptionModule* contentDecryptionModule(HTMLMediaElement&
); |
| 52 | 52 |
| 53 static HTMLMediaElementEncryptedMedia& from(HTMLMediaElement&); | 53 static HTMLMediaElementEncryptedMedia& from(HTMLMediaElement&); |
| 54 static const char* supplementName(); | 54 static const char* supplementName(); |
| 55 | 55 |
| 56 virtual void trace(Visitor*) override; | 56 DECLARE_VIRTUAL_TRACE(); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 friend class SetMediaKeysHandler; | 59 friend class SetMediaKeysHandler; |
| 60 | 60 |
| 61 HTMLMediaElementEncryptedMedia(); | 61 HTMLMediaElementEncryptedMedia(); |
| 62 void generateKeyRequest(WebMediaPlayer*, const String& keySystem, PassRefPtr
<DOMUint8Array> initData, ExceptionState&); | 62 void generateKeyRequest(WebMediaPlayer*, const String& keySystem, PassRefPtr
<DOMUint8Array> initData, ExceptionState&); |
| 63 void addKey(WebMediaPlayer*, const String& keySystem, PassRefPtr<DOMUint8Arr
ay> key, PassRefPtr<DOMUint8Array> initData, const String& sessionId, ExceptionS
tate&); | 63 void addKey(WebMediaPlayer*, const String& keySystem, PassRefPtr<DOMUint8Arr
ay> key, PassRefPtr<DOMUint8Array> initData, const String& sessionId, ExceptionS
tate&); |
| 64 void cancelKeyRequest(WebMediaPlayer*, const String& keySystem, const String
& sessionId, ExceptionState&); | 64 void cancelKeyRequest(WebMediaPlayer*, const String& keySystem, const String
& sessionId, ExceptionState&); |
| 65 | 65 |
| 66 // EventTarget | 66 // EventTarget |
| (...skipping 15 matching lines...) Expand all Loading... |
| 82 EmeMode m_emeMode; | 82 EmeMode m_emeMode; |
| 83 | 83 |
| 84 bool m_isWaitingForKey; | 84 bool m_isWaitingForKey; |
| 85 | 85 |
| 86 PersistentWillBeMember<MediaKeys> m_mediaKeys; | 86 PersistentWillBeMember<MediaKeys> m_mediaKeys; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| 90 | 90 |
| 91 #endif | 91 #endif |
| OLD | NEW |