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

Unified Diff: third_party/WebKit/Source/modules/encoding/TextEncoder.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/encoding/TextEncoder.h
diff --git a/third_party/WebKit/Source/modules/encoding/TextEncoder.h b/third_party/WebKit/Source/modules/encoding/TextEncoder.h
index 2f63a48bd87c14f282a5921f8cc1af70bac3d575..6c96710484815b478f8a1f9f43093d3316331daa 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() {}
« no previous file with comments | « third_party/WebKit/Source/modules/encoding/TextDecoder.cpp ('k') | third_party/WebKit/Source/modules/encoding/TextEncoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698