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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h

Issue 2749503002: [wasm] enable wasm structured cloning in specific cases (Closed)
Patch Set: async Created 3 years, 9 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/bindings/core/v8/serialization/V8ScriptValueSerializer.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h
index a1f47f72bb2a3bad5eaf969a35578c682a2b5e6e..350e4ef681301df9415539a86a47904ec97b2afa 100644
--- a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h
+++ b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h
@@ -38,6 +38,8 @@ class GC_PLUGIN_IGNORE("https://crbug.com/644725")
explicit V8ScriptValueSerializer(RefPtr<ScriptState>,
const Options& = Options());
+ void setInlineWasm(bool inlineWasm) { m_inlineWasm = inlineWasm; }
+
RefPtr<SerializedScriptValue> serialize(v8::Local<v8::Value>,
ExceptionState&);
@@ -81,6 +83,9 @@ class GC_PLUGIN_IGNORE("https://crbug.com/644725")
v8::Isolate*,
v8::Local<v8::SharedArrayBuffer>) override;
+ v8::Maybe<uint32_t> GetWasmModuleTransferId(
+ v8::Isolate*,
+ v8::Local<v8::WasmCompiledModule>) override;
void* ReallocateBufferMemory(void* oldBuffer,
size_t,
size_t* actualSize) override;
@@ -93,7 +98,7 @@ class GC_PLUGIN_IGNORE("https://crbug.com/644725")
const ExceptionState* m_exceptionState = nullptr;
WebBlobInfoArray* m_blobInfoArray = nullptr;
ArrayBufferArray m_sharedArrayBuffers;
-
+ bool m_inlineWasm = false;
#if DCHECK_IS_ON()
bool m_serializeInvoked = false;
#endif

Powered by Google App Engine
This is Rietveld 408576698