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

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

Issue 2494823002: V8ScriptValueSerializer: Use PartitionAlloc for the buffer, and avoid copying it into a String. (Closed)
Patch Set: initialize SerializedScriptValue::m_dataBufferSize Created 4 years, 1 month 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 ff239011ad5a7ef33968b8a7c8b970e0d31ac2ec..48bc1c44ace9d6812c4f4a155894328b2774a663 100644
--- a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h
+++ b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h
@@ -81,6 +81,11 @@ class GC_PLUGIN_IGNORE("https://crbug.com/644725")
v8::Maybe<bool> WriteHostObject(v8::Isolate*,
v8::Local<v8::Object> message) override;
+ void* ReallocateBufferMemory(void* oldBuffer,
+ size_t,
+ size_t* actualSize) override;
+ void FreeBufferMemory(void* buffer) override;
+
RefPtr<ScriptState> m_scriptState;
RefPtr<SerializedScriptValue> m_serializedScriptValue;
v8::ValueSerializer m_serializer;

Powered by Google App Engine
This is Rietveld 408576698