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

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

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/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 8aaf437ff2a26192af4d51b5e69da5baddcfa796..b35d7a7e830435b56c4aeb22ba9af46d835c38a0 100644
--- a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h
+++ b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h
@@ -34,16 +34,11 @@ class GC_PLUGIN_IGNORE("https://crbug.com/644725")
WTF_MAKE_NONCOPYABLE(V8ScriptValueSerializer);
public:
- explicit V8ScriptValueSerializer(RefPtr<ScriptState>);
-
- // If not null, blobs will have info written into this array and be
- // serialized by index.
- void setBlobInfoArray(WebBlobInfoArray* blobInfoArray) {
- m_blobInfoArray = blobInfoArray;
- }
+ using Options = SerializedScriptValue::SerializeOptions;
+ explicit V8ScriptValueSerializer(RefPtr<ScriptState>,
+ const Options& = Options());
RefPtr<SerializedScriptValue> serialize(v8::Local<v8::Value>,
- Transferables*,
ExceptionState&);
protected:
@@ -70,7 +65,7 @@ class GC_PLUGIN_IGNORE("https://crbug.com/644725")
// neuter objects in the source context).
// This separation is required by the spec (it prevents neutering from
// happening if there's a failure earlier in serialization).
- void prepareTransfer(Transferables*, ExceptionState&);
+ void prepareTransfer(ExceptionState&);
void finalizeTransfer(ExceptionState&);
// Shared between File and FileList logic; does not write a leading tag.

Powered by Google App Engine
This is Rietveld 408576698