| 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/serialization/SerializedScriptValueFactory.h" |
| 9 #include "platform/wtf/Noncopyable.h" | 9 #include "platform/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 protected: | 21 protected: |
| 22 PassRefPtr<SerializedScriptValue> Create( | 22 PassRefPtr<SerializedScriptValue> Create( |
| 23 v8::Isolate*, | 23 v8::Isolate*, |
| 24 v8::Local<v8::Value>, | 24 v8::Local<v8::Value>, |
| 25 const SerializedScriptValue::SerializeOptions&, | 25 const SerializedScriptValue::SerializeOptions&, |
| 26 ExceptionState&) override; | 26 ExceptionState&) override; |
| 27 | 27 |
| 28 v8::Local<v8::Value> Deserialize( | 28 v8::Local<v8::Value> Deserialize( |
| 29 SerializedScriptValue*, | 29 SerializedScriptValue*, |
| 30 v8::Isolate*, | 30 v8::Isolate*, |
| 31 const SerializedScriptValue::DeserializeOptions&) override; | 31 const SerializedScriptValue::DeserializeOptions&) override; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace blink | 34 } // namespace blink |
| 35 | 35 |
| 36 #endif // SerializedScriptValueForModulesFactory_h | 36 #endif // SerializedScriptValueForModulesFactory_h |
| OLD | NEW |