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 : public SerializedScriptValu eFactory { | 13 class SerializedScriptValueForModulesFactory final : public SerializedScriptValu eFactory { |
14 USING_FAST_MALLOC(SerializedScriptValueForModulesFactory); | 14 USING_FAST_MALLOC(SerializedScriptValueForModulesFactory); |
15 WTF_MAKE_NONCOPYABLE(SerializedScriptValueForModulesFactory); | 15 WTF_MAKE_NONCOPYABLE(SerializedScriptValueForModulesFactory); |
16 public: | 16 public: |
17 SerializedScriptValueForModulesFactory() : SerializedScriptValueFactory() { } | 17 SerializedScriptValueForModulesFactory() : SerializedScriptValueFactory() { } |
18 | 18 |
19 PassRefPtr<SerializedScriptValue> create(v8::Isolate*, v8::Local<v8::Value>, Transferables*, WebBlobInfoArray*, ExceptionState&) override; | 19 PassRefPtr<SerializedScriptValue> create(v8::Isolate*, v8::Local<v8::Value>, Transferables*, WebBlobInfoArray*, ExceptionState&) override; |
20 PassRefPtr<SerializedScriptValue> create(v8::Isolate*, const String&) overri de; | 20 PassRefPtr<SerializedScriptValue> create(v8::Isolate*, const String&) overri de; |
21 bool extractTransferables(v8::Isolate*, Transferables&, ExceptionState&, v8: :Local<v8::Value>&, unsigned) override; | |
21 | 22 |
22 protected: | 23 protected: |
23 ScriptValueSerializer::Status doSerialize(v8::Local<v8::Value>, SerializedSc riptValueWriter&, Transferables*, WebBlobInfoArray*, BlobDataHandleMap&, v8::Try Catch&, String& errorMessage, v8::Isolate*) override; | 24 ScriptValueSerializer::Status doSerialize(v8::Local<v8::Value>, SerializedSc riptValueWriter&, Transferables*, WebBlobInfoArray*, BlobDataHandleMap&, v8::Try Catch&, String& errorMessage, v8::Isolate*) override; |
24 | 25 |
25 v8::Local<v8::Value> deserialize(String& data, BlobDataHandleMap& blobDataHa ndles, ArrayBufferContentsArray*, ImageBitmapContentsArray*, v8::Isolate*, Messa gePortArray* messagePorts, const WebBlobInfoArray*) override; | 26 v8::Local<v8::Value> deserialize(String& data, BlobDataHandleMap& blobDataHa ndles, ArrayBufferContentsArray*, ImageBitmapContentsArray*, v8::Isolate*, Messa gePortArray* messagePorts, const WebBlobInfoArray*) override; |
27 | |
28 void transferData(SerializedScriptValue*, SerializedScriptValueWriter&, Tran sferables*, ExceptionState&, v8::Isolate*) override; | |
haraken
2016/04/21 00:29:03
Make the parameter order be consistent with extrac
xidachen
2016/04/21 15:32:48
Done.
| |
26 }; | 29 }; |
27 | 30 |
28 } // namespace blink | 31 } // namespace blink |
29 | 32 |
30 #endif // SerializedScriptValueForModulesFactory_h | 33 #endif // SerializedScriptValueForModulesFactory_h |
31 | 34 |
OLD | NEW |