OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SerializedScriptValueForModulesFactory_h | |
6 #define SerializedScriptValueForModulesFactory_h | |
7 | |
8 #include "bindings/core/v8/SerializedScriptValueFactory.h" | |
9 #include "platform/wtf/Noncopyable.h" | |
10 | |
11 namespace blink { | |
12 | |
13 class SerializedScriptValueForModulesFactory final | |
14 : public SerializedScriptValueFactory { | |
15 USING_FAST_MALLOC(SerializedScriptValueForModulesFactory); | |
16 WTF_MAKE_NONCOPYABLE(SerializedScriptValueForModulesFactory); | |
17 | |
18 public: | |
19 SerializedScriptValueForModulesFactory() : SerializedScriptValueFactory() {} | |
20 | |
21 protected: | |
22 PassRefPtr<SerializedScriptValue> Create( | |
23 v8::Isolate*, | |
24 v8::Local<v8::Value>, | |
25 const SerializedScriptValue::SerializeOptions&, | |
26 ExceptionState&) override; | |
27 | |
28 v8::Local<v8::Value> Deserialize( | |
29 SerializedScriptValue*, | |
30 v8::Isolate*, | |
31 const SerializedScriptValue::DeserializeOptions&) override; | |
32 }; | |
33 | |
34 } // namespace blink | |
35 | |
36 #endif // SerializedScriptValueForModulesFactory_h | |
OLD | NEW |