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

Unified Diff: third_party/WebKit/Source/modules/encoding/TextEncoder.h

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: add some layout tests 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/encoding/TextEncoder.h
diff --git a/third_party/WebKit/Source/modules/encoding/TextEncoder.h b/third_party/WebKit/Source/modules/encoding/TextEncoder.h
index 500e5a61f6d4d223dcdc66f06aa56c52e25ab70e..c34ab239f27cf9bf75254cb66d25d3aa2cba06b0 100644
--- a/third_party/WebKit/Source/modules/encoding/TextEncoder.h
+++ b/third_party/WebKit/Source/modules/encoding/TextEncoder.h
@@ -31,13 +31,14 @@
#ifndef TextEncoder_h
#define TextEncoder_h
+#include <memory>
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/dom/DOMTypedArray.h"
+#include "core/dom/NotShared.h"
#include "platform/heap/Handle.h"
#include "wtf/text/TextCodec.h"
#include "wtf/text/TextEncoding.h"
#include "wtf/text/WTFString.h"
-#include <memory>
namespace blink {
@@ -54,7 +55,7 @@ class TextEncoder final : public GarbageCollectedFinalized<TextEncoder>,
// Implement the IDL
String encoding() const;
- DOMUint8Array* encode(const String&);
+ NotShared<DOMUint8Array> encode(const String&);
DEFINE_INLINE_TRACE() {}

Powered by Google App Engine
This is Rietveld 408576698