Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1507)

Unified Diff: Source/modules/encryptedmedia/MediaKeySession.h

Issue 397463005: Change EME WebIDL to use ArrayBuffer/ArrayBufferView. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/encryptedmedia/MediaKeySession.h
diff --git a/Source/modules/encryptedmedia/MediaKeySession.h b/Source/modules/encryptedmedia/MediaKeySession.h
index 881beda92ea089b735c252f13d465ee57bc59c49..5191cf82f6e73e1d8501ab77b338a9d98c5c7b91 100644
--- a/Source/modules/encryptedmedia/MediaKeySession.h
+++ b/Source/modules/encryptedmedia/MediaKeySession.h
@@ -66,7 +66,7 @@ class MediaKeySession FINAL
DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<MediaKeySession>);
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaKeySession);
public:
- static ScriptPromise create(ScriptState*, MediaKeys*, const String& initDataType, PassRefPtr<Uint8Array> initData, const String& sessionType);
+ static ScriptPromise create(ScriptState*, MediaKeys*, const String& initDataType, PassRefPtr<ArrayBuffer> initData, const String& sessionType);
virtual ~MediaKeySession();
const String& keySystem() const { return m_keySystem; }
@@ -75,7 +75,8 @@ public:
void setError(MediaKeyError*);
MediaKeyError* error() { return m_error.get(); }
- ScriptPromise update(ScriptState*, Uint8Array* response);
+ ScriptPromise update(ScriptState*, ArrayBuffer* response);
+ ScriptPromise update(ScriptState*, ArrayBufferView* response);
ScriptPromise release(ScriptState*);
void enqueueEvent(PassRefPtrWillBeRawPtr<Event>);
@@ -104,6 +105,8 @@ private:
virtual void error(MediaKeyErrorCode, unsigned long systemCode) OVERRIDE;
virtual void error(blink::WebContentDecryptionModuleException, unsigned long systemCode, const blink::WebString& errorMessage) OVERRIDE;
+ ScriptPromise updateInternal(ScriptState*, PassRefPtr<ArrayBuffer> response);
+
String m_keySystem;
RefPtrWillBeMember<MediaKeyError> m_error;
OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue;
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeyMessageEvent.idl ('k') | Source/modules/encryptedmedia/MediaKeySession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698