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