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

Unified Diff: Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.h

Issue 718383003: bindings: fixed incorrect dependency of SerializedScriptValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added fast/js/structured-clone.html Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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
+

Powered by Google App Engine
This is Rietveld 408576698