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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.cpp

Issue 2857143005: Gather serialization-related code into a directory. (Closed)
Patch Set: Created 3 years, 7 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/modules/v8/SerializedScriptValueForModulesFactory.cpp
diff --git a/third_party/WebKit/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.cpp b/third_party/WebKit/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.cpp
deleted file mode 100644
index 2c775a0868c1687c2606c62329fe09f859d5e848..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "bindings/modules/v8/SerializedScriptValueForModulesFactory.h"
-
-#include "bindings/modules/v8/serialization/V8ScriptValueDeserializerForModules.h"
-#include "bindings/modules/v8/serialization/V8ScriptValueSerializerForModules.h"
-#include "platform/instrumentation/tracing/TraceEvent.h"
-
-namespace blink {
-
-PassRefPtr<SerializedScriptValue>
-SerializedScriptValueForModulesFactory::Create(
- v8::Isolate* isolate,
- v8::Local<v8::Value> value,
- const SerializedScriptValue::SerializeOptions& options,
- ExceptionState& exception_state) {
- TRACE_EVENT0("blink", "SerializedScriptValueFactory::create");
- V8ScriptValueSerializerForModules serializer(ScriptState::Current(isolate),
- options);
- return serializer.Serialize(value, exception_state);
-}
-
-v8::Local<v8::Value> SerializedScriptValueForModulesFactory::Deserialize(
- SerializedScriptValue* value,
- v8::Isolate* isolate,
- const SerializedScriptValue::DeserializeOptions& options) {
- TRACE_EVENT0("blink", "SerializedScriptValueFactory::deserialize");
- V8ScriptValueDeserializerForModules deserializer(
- ScriptState::Current(isolate), value, options);
- return deserializer.Deserialize();
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698