| Index: Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.h
|
| diff --git a/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.h b/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..87cfd1d1a86eb532cdccb481777fab1d4a31ba5a
|
| --- /dev/null
|
| +++ b/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.h
|
| @@ -0,0 +1,30 @@
|
| +// 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.
|
| +
|
| +#ifndef SerializedScriptValueForModulesFactory_h
|
| +#define SerializedScriptValueForModulesFactory_h
|
| +
|
| +#include "bindings/core/v8/SerializedScriptValueFactory.h"
|
| +#include "wtf/Noncopyable.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class SerializedScriptValueForModulesFactory final : public SerializedScriptValueFactory {
|
| + WTF_MAKE_NONCOPYABLE(SerializedScriptValueForModulesFactory);
|
| +public:
|
| + SerializedScriptValueForModulesFactory() : SerializedScriptValueFactory() { }
|
| +
|
| + virtual PassRefPtr<SerializedScriptValue> create(v8::Handle<v8::Value>, MessagePortArray*, ArrayBufferArray*, WebBlobInfoArray*, ExceptionState&, v8::Isolate*) override;
|
| + virtual PassRefPtr<SerializedScriptValue> create(const String&, v8::Isolate*) override;
|
| +
|
| +protected:
|
| + virtual ScriptValueSerializer::Status doSerialize(v8::Handle<v8::Value>, SerializedScriptValueWriter&, MessagePortArray*, ArrayBufferArray*, WebBlobInfoArray*, BlobDataHandleMap&, v8::TryCatch&, String& errorMessage, v8::Isolate*) override;
|
| +
|
| + virtual v8::Handle<v8::Value> deserialize(String& data, BlobDataHandleMap& blobDataHandles, ArrayBufferContentsArray*, v8::Isolate*, MessagePortArray* messagePorts, const WebBlobInfoArray*) override;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // SerializedScriptValueForModulesFactory_h
|
| +
|
|
|