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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp

Issue 2359363005: Support Blob on the V8-based structured clone path. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp
index d12350edd382fa7c886a7028cba183a7efda9576..63c98341774f6848be5c83ff31af95a3eb47af15 100644
--- a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp
@@ -23,6 +23,7 @@ PassRefPtr<SerializedScriptValue> SerializedScriptValueFactory::create(v8::Isola
{
if (RuntimeEnabledFeatures::v8BasedStructuredCloneEnabled()) {
V8ScriptValueSerializer serializer(ScriptState::current(isolate));
+ serializer.setBlobInfoArray(blobInfo);
return serializer.serialize(value, transferables, exceptionState);
}
SerializedScriptValueWriter writer;
@@ -35,6 +36,7 @@ v8::Local<v8::Value> SerializedScriptValueFactory::deserialize(SerializedScriptV
if (RuntimeEnabledFeatures::v8BasedStructuredCloneEnabled()) {
V8ScriptValueDeserializer deserializer(ScriptState::current(isolate), value);
deserializer.setTransferredMessagePorts(messagePorts);
+ deserializer.setBlobInfoArray(blobInfo);
return deserializer.deserialize();
}
// deserialize() can run arbitrary script (e.g., setters), which could result in |this| being destroyed.
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698