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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp

Issue 2755383004: Encapsulate optional SerializedScriptValue serialize/deserialize parameters. (Closed)
Patch Set: fuzzer 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/tests/results/core/V8TestObject.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
index 71d5f563f0ac347ad4ce2cc2b746a37ebcfcc296..7badf063c8a5ecb059a57fc3d016b3639eb12fbb 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
@@ -7733,7 +7733,9 @@ static void postMessageImpl(const char* interfaceName, TestObject* instance, con
RefPtr<SerializedScriptValue> message;
if (instance->canTransferArrayBuffersAndImageBitmaps()) {
// This instance supports sending array buffers by move semantics.
- message = SerializedScriptValue::serialize(info.GetIsolate(), info[0], &transferables, nullptr, exceptionState);
+ SerializedScriptValue::SerializeOptions options;
+ options.transferables = &transferables;
+ message = SerializedScriptValue::serialize(info.GetIsolate(), info[0], options, exceptionState);
if (exceptionState.hadException())
return;
} else {
@@ -7749,7 +7751,9 @@ static void postMessageImpl(const char* interfaceName, TestObject* instance, con
transferables.arrayBuffers.clear();
ImageBitmapArray transferableImageBitmaps = transferables.imageBitmaps;
transferables.imageBitmaps.clear();
- message = SerializedScriptValue::serialize(info.GetIsolate(), info[0], &transferables, nullptr, exceptionState);
+ SerializedScriptValue::SerializeOptions options;
+ options.transferables = &transferables;
+ message = SerializedScriptValue::serialize(info.GetIsolate(), info[0], options, exceptionState);
if (exceptionState.hadException())
return;

Powered by Google App Engine
This is Rietveld 408576698