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

Unified Diff: Source/modules/encryptedmedia/MediaKeyMessageEvent.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/MediaKeyMessageEvent.h
diff --git a/Source/modules/encryptedmedia/MediaKeyMessageEvent.h b/Source/modules/encryptedmedia/MediaKeyMessageEvent.h
index ac46880a6ec6cfcfb4734278adb5418225eabbf3..61b65bd758d4afcfd288938a235335162e490cad 100644
--- a/Source/modules/encryptedmedia/MediaKeyMessageEvent.h
+++ b/Source/modules/encryptedmedia/MediaKeyMessageEvent.h
@@ -29,13 +29,14 @@
#include "core/html/MediaKeyError.h"
#include "modules/EventModules.h"
+#include "wtf/ArrayBuffer.h"
namespace blink {
struct MediaKeyMessageEventInit : public EventInit {
MediaKeyMessageEventInit();
- RefPtr<Uint8Array> message;
+ RefPtr<ArrayBuffer> message;
String destinationURL;
};
@@ -55,7 +56,7 @@ public:
virtual const AtomicString& interfaceName() const OVERRIDE;
- Uint8Array* message() const { return m_message.get(); }
+ ArrayBuffer* message() const { return m_message.get(); }
String destinationURL() const { return m_destinationURL; }
virtual void trace(Visitor*) OVERRIDE;
@@ -64,7 +65,7 @@ private:
MediaKeyMessageEvent();
MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventInit& initializer);
- RefPtr<Uint8Array> m_message;
+ RefPtr<ArrayBuffer> m_message;
String m_destinationURL;
};

Powered by Google App Engine
This is Rietveld 408576698