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

Unified Diff: third_party/WebKit/Source/modules/mediasource/SourceBuffer.h

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 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: third_party/WebKit/Source/modules/mediasource/SourceBuffer.h
diff --git a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h
index 2002e6f4dc5a527ed18efbe68a015dba835a2c45..74d4a355ee4d5c5a7c46c8766040e3b48c3e2ef4 100644
--- a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h
+++ b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h
@@ -31,7 +31,9 @@
#ifndef SourceBuffer_h
#define SourceBuffer_h
+#include <memory>
#include "bindings/core/v8/ActiveScriptWrappable.h"
+#include "core/dom/NotShared.h"
#include "core/dom/SuspendableObject.h"
#include "modules/EventTargetModules.h"
#include "modules/mediasource/TrackDefaultList.h"
@@ -39,7 +41,6 @@
#include "platform/weborigin/KURL.h"
#include "public/platform/WebSourceBufferClient.h"
#include "wtf/text/WTFString.h"
-#include <memory>
namespace blink {
@@ -78,7 +79,7 @@ class SourceBuffer final : public EventTargetWithInlineData,
double timestampOffset() const;
void setTimestampOffset(double, ExceptionState&);
void appendBuffer(DOMArrayBuffer* data, ExceptionState&);
- void appendBuffer(DOMArrayBufferView* data, ExceptionState&);
+ void appendBuffer(NotShared<DOMArrayBufferView> data, ExceptionState&);
void abort(ExceptionState&);
void remove(double start, double end, ExceptionState&);
double appendWindowStart() const;

Powered by Google App Engine
This is Rietveld 408576698