Index: Source/bindings/v8/SerializedScriptValue.h |
diff --git a/Source/bindings/v8/SerializedScriptValue.h b/Source/bindings/v8/SerializedScriptValue.h |
index 35978435c684737a062cf5efa07f87ec9112ede3..224b27d6a4a0463586b74f00fd385efbcfb5140b 100644 |
--- a/Source/bindings/v8/SerializedScriptValue.h |
+++ b/Source/bindings/v8/SerializedScriptValue.h |
@@ -32,11 +32,16 @@ |
#define SerializedScriptValue_h |
#include "bindings/v8/ScriptValue.h" |
- |
#include "wtf/HashMap.h" |
#include "wtf/ThreadSafeRefCounted.h" |
#include <v8.h> |
+namespace blink { |
+ |
+class WebBlobInfo; |
+ |
+} |
+ |
namespace WTF { |
class ArrayBuffer; |
@@ -76,8 +81,7 @@ public: |
static PassRefPtr<SerializedScriptValue> create(const String&); |
static PassRefPtr<SerializedScriptValue> create(const String&, v8::Isolate*); |
static PassRefPtr<SerializedScriptValue> create(); |
- |
- static PassRefPtr<SerializedScriptValue> create(const ScriptValue&, ExceptionState&, ScriptState*); |
+ static PassRefPtr<SerializedScriptValue> create(const ScriptValue&, Vector<blink::WebBlobInfo>*, ExceptionState&, ScriptState*); |
// Never throws exceptions. |
static PassRefPtr<SerializedScriptValue> createAndSwallowExceptions(v8::Handle<v8::Value>, v8::Isolate*); |
@@ -90,7 +94,8 @@ public: |
// Deserializes the value (in the current context). Returns a null value in |
// case of failure. |
v8::Handle<v8::Value> deserialize(MessagePortArray* = 0); |
- v8::Handle<v8::Value> deserialize(v8::Isolate*, MessagePortArray* = 0); |
+ v8::Handle<v8::Value> deserialize(v8::Isolate*, MessagePortArray* = 0, const |
+ Vector<blink::WebBlobInfo>* = 0); |
// Helper function which pulls the values out of a JS sequence and into a MessagePortArray. |
// Also validates the elements per sections 4.1.13 and 4.1.15 of the WebIDL spec and section 8.3.3 |
@@ -116,7 +121,7 @@ private: |
typedef Vector<WTF::ArrayBufferContents, 1> ArrayBufferContentsArray; |
SerializedScriptValue(); |
- SerializedScriptValue(v8::Handle<v8::Value>, MessagePortArray*, ArrayBufferArray*, ExceptionState&, v8::Isolate*); |
+ SerializedScriptValue(v8::Handle<v8::Value>, MessagePortArray*, ArrayBufferArray*, Vector<blink::WebBlobInfo>*, ExceptionState&, v8::Isolate*); |
explicit SerializedScriptValue(const String& wireData); |
static PassOwnPtr<ArrayBufferContentsArray> transferArrayBuffers(ArrayBufferArray&, ExceptionState&, v8::Isolate*); |