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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/serialization/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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "bindings/modules/v8/SerializedScriptValueForModulesFactory.h" 5 #include "bindings/modules/v8/serialization/SerializedScriptValueForModulesFacto ry.h"
6 6
7 #include "bindings/modules/v8/serialization/V8ScriptValueDeserializerForModules. h" 7 #include "bindings/modules/v8/serialization/V8ScriptValueDeserializerForModules. h"
8 #include "bindings/modules/v8/serialization/V8ScriptValueSerializerForModules.h" 8 #include "bindings/modules/v8/serialization/V8ScriptValueSerializerForModules.h"
9 #include "platform/instrumentation/tracing/TraceEvent.h" 9 #include "platform/instrumentation/tracing/TraceEvent.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 PassRefPtr<SerializedScriptValue> 13 PassRefPtr<SerializedScriptValue>
14 SerializedScriptValueForModulesFactory::Create( 14 SerializedScriptValueForModulesFactory::Create(
15 v8::Isolate* isolate, 15 v8::Isolate* isolate,
(...skipping 10 matching lines...) Expand all
26 SerializedScriptValue* value, 26 SerializedScriptValue* value,
27 v8::Isolate* isolate, 27 v8::Isolate* isolate,
28 const SerializedScriptValue::DeserializeOptions& options) { 28 const SerializedScriptValue::DeserializeOptions& options) {
29 TRACE_EVENT0("blink", "SerializedScriptValueFactory::deserialize"); 29 TRACE_EVENT0("blink", "SerializedScriptValueFactory::deserialize");
30 V8ScriptValueDeserializerForModules deserializer( 30 V8ScriptValueDeserializerForModules deserializer(
31 ScriptState::Current(isolate), value, options); 31 ScriptState::Current(isolate), value, options);
32 return deserializer.Deserialize(); 32 return deserializer.Deserialize();
33 } 33 }
34 34
35 } // namespace blink 35 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698