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 ScriptValueSerializer_h | 5 #ifndef ScriptValueSerializer_h |
6 #define ScriptValueSerializer_h | 6 #define ScriptValueSerializer_h |
7 | 7 |
8 #include "bindings/core/v8/SerializationTag.h" | 8 #include "bindings/core/v8/SerializationTag.h" |
9 #include "bindings/core/v8/SerializedScriptValue.h" | 9 #include "bindings/core/v8/SerializedScriptValue.h" |
10 #include "bindings/core/v8/V8Binding.h" | 10 #include "bindings/core/v8/V8Binding.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 void writeNumberObject(v8::Local<v8::Value>); | 410 void writeNumberObject(v8::Local<v8::Value>); |
411 void writeBooleanObject(v8::Local<v8::Value>); | 411 void writeBooleanObject(v8::Local<v8::Value>); |
412 StateBase* writeBlob(v8::Local<v8::Value>, StateBase* next); | 412 StateBase* writeBlob(v8::Local<v8::Value>, StateBase* next); |
413 StateBase* writeCompositorProxy(v8::Local<v8::Value>, StateBase* next); | 413 StateBase* writeCompositorProxy(v8::Local<v8::Value>, StateBase* next); |
414 StateBase* writeFile(v8::Local<v8::Value>, StateBase* next); | 414 StateBase* writeFile(v8::Local<v8::Value>, StateBase* next); |
415 StateBase* writeFileList(v8::Local<v8::Value>, StateBase* next); | 415 StateBase* writeFileList(v8::Local<v8::Value>, StateBase* next); |
416 void writeImageData(v8::Local<v8::Value>); | 416 void writeImageData(v8::Local<v8::Value>); |
417 StateBase* writeAndGreyImageBitmap(v8::Local<v8::Object>, StateBase* next); | 417 StateBase* writeAndGreyImageBitmap(v8::Local<v8::Object>, StateBase* next); |
418 void writeRegExp(v8::Local<v8::Value>); | 418 void writeRegExp(v8::Local<v8::Value>); |
419 StateBase* writeAndGreyArrayBufferView(v8::Local<v8::Object>, StateBase* nex
t); | 419 StateBase* writeAndGreyArrayBufferView(v8::Local<v8::Object>, StateBase* nex
t); |
| 420 StateBase* writeWasmCompiledModule(v8::Local<v8::Object>, StateBase* next); |
420 StateBase* writeAndGreyArrayBuffer(v8::Local<v8::Object>, StateBase* next); | 421 StateBase* writeAndGreyArrayBuffer(v8::Local<v8::Object>, StateBase* next); |
421 StateBase* writeTransferredOffscreenCanvas(v8::Local<v8::Value>, uint32_t in
dex, StateBase* next); | 422 StateBase* writeTransferredOffscreenCanvas(v8::Local<v8::Value>, uint32_t in
dex, StateBase* next); |
422 StateBase* writeTransferredSharedArrayBuffer(v8::Local<v8::Value>, uint32_t
index, StateBase* next); | 423 StateBase* writeTransferredSharedArrayBuffer(v8::Local<v8::Value>, uint32_t
index, StateBase* next); |
423 static bool shouldSerializeDensely(uint32_t length, uint32_t propertyCount); | 424 static bool shouldSerializeDensely(uint32_t length, uint32_t propertyCount); |
424 | 425 |
425 StateBase* startArrayState(v8::Local<v8::Array>, StateBase* next); | 426 StateBase* startArrayState(v8::Local<v8::Array>, StateBase* next); |
426 StateBase* startObjectState(v8::Local<v8::Object>, StateBase* next); | 427 StateBase* startObjectState(v8::Local<v8::Object>, StateBase* next); |
427 StateBase* startMapState(v8::Local<v8::Map>, StateBase* next); | 428 StateBase* startMapState(v8::Local<v8::Map>, StateBase* next); |
428 StateBase* startSetState(v8::Local<v8::Set>, StateBase* next); | 429 StateBase* startSetState(v8::Local<v8::Set>, StateBase* next); |
429 | 430 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 bool readDate(v8::Local<v8::Value>*); | 515 bool readDate(v8::Local<v8::Value>*); |
515 bool readNumber(v8::Local<v8::Value>*); | 516 bool readNumber(v8::Local<v8::Value>*); |
516 bool readNumberObject(v8::Local<v8::Value>*); | 517 bool readNumberObject(v8::Local<v8::Value>*); |
517 bool doReadImageDataProperties(uint32_t* width, uint32_t* height, uint32_t*
pixelDataLength); | 518 bool doReadImageDataProperties(uint32_t* width, uint32_t* height, uint32_t*
pixelDataLength); |
518 bool readImageData(v8::Local<v8::Value>*); | 519 bool readImageData(v8::Local<v8::Value>*); |
519 bool readImageBitmap(v8::Local<v8::Value>*); | 520 bool readImageBitmap(v8::Local<v8::Value>*); |
520 bool readCompositorProxy(v8::Local<v8::Value>*); | 521 bool readCompositorProxy(v8::Local<v8::Value>*); |
521 DOMArrayBuffer* doReadArrayBuffer(); | 522 DOMArrayBuffer* doReadArrayBuffer(); |
522 bool readArrayBuffer(v8::Local<v8::Value>*); | 523 bool readArrayBuffer(v8::Local<v8::Value>*); |
523 bool readArrayBufferView(v8::Local<v8::Value>*, ScriptValueDeserializer&); | 524 bool readArrayBufferView(v8::Local<v8::Value>*, ScriptValueDeserializer&); |
| 525 bool readWasmCompiledModule(v8::Local<v8::Value>*); |
524 bool readRegExp(v8::Local<v8::Value>*); | 526 bool readRegExp(v8::Local<v8::Value>*); |
525 bool readBlob(v8::Local<v8::Value>*, bool isIndexed); | 527 bool readBlob(v8::Local<v8::Value>*, bool isIndexed); |
526 bool readFile(v8::Local<v8::Value>*, bool isIndexed); | 528 bool readFile(v8::Local<v8::Value>*, bool isIndexed); |
527 bool readFileList(v8::Local<v8::Value>*, bool isIndexed); | 529 bool readFileList(v8::Local<v8::Value>*, bool isIndexed); |
528 File* readFileHelper(); | 530 File* readFileHelper(); |
529 File* readFileIndexHelper(); | 531 File* readFileIndexHelper(); |
530 | 532 |
531 template<class T> | 533 template<class T> |
532 bool doReadUintHelper(T* value) | 534 bool doReadUintHelper(T* value) |
533 { | 535 { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 ArrayBufferContentsArray* m_arrayBufferContents; | 622 ArrayBufferContentsArray* m_arrayBufferContents; |
621 ImageBitmapContentsArray* m_imageBitmapContents; | 623 ImageBitmapContentsArray* m_imageBitmapContents; |
622 Vector<v8::Local<v8::Value>> m_arrayBuffers; | 624 Vector<v8::Local<v8::Value>> m_arrayBuffers; |
623 Vector<v8::Local<v8::Value>> m_imageBitmaps; | 625 Vector<v8::Local<v8::Value>> m_imageBitmaps; |
624 uint32_t m_version; | 626 uint32_t m_version; |
625 }; | 627 }; |
626 | 628 |
627 } // namespace blink | 629 } // namespace blink |
628 | 630 |
629 #endif // ScriptValueSerializer_h | 631 #endif // ScriptValueSerializer_h |
OLD | NEW |