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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h

Issue 2255673003: [wasm] Support wasm module structured cloning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: LayoutTests and virtual path Created 4 years, 3 months 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 unified diff | Download patch
OLDNEW
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
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 bool readDate(v8::Local<v8::Value>*); 519 bool readDate(v8::Local<v8::Value>*);
519 bool readNumber(v8::Local<v8::Value>*); 520 bool readNumber(v8::Local<v8::Value>*);
520 bool readNumberObject(v8::Local<v8::Value>*); 521 bool readNumberObject(v8::Local<v8::Value>*);
521 bool doReadImageDataProperties(uint32_t* width, uint32_t* height, uint32_t* pixelDataLength); 522 bool doReadImageDataProperties(uint32_t* width, uint32_t* height, uint32_t* pixelDataLength);
522 bool readImageData(v8::Local<v8::Value>*); 523 bool readImageData(v8::Local<v8::Value>*);
523 bool readImageBitmap(v8::Local<v8::Value>*); 524 bool readImageBitmap(v8::Local<v8::Value>*);
524 bool readCompositorProxy(v8::Local<v8::Value>*); 525 bool readCompositorProxy(v8::Local<v8::Value>*);
525 DOMArrayBuffer* doReadArrayBuffer(); 526 DOMArrayBuffer* doReadArrayBuffer();
526 bool readArrayBuffer(v8::Local<v8::Value>*); 527 bool readArrayBuffer(v8::Local<v8::Value>*);
527 bool readArrayBufferView(v8::Local<v8::Value>*, ScriptValueDeserializer&); 528 bool readArrayBufferView(v8::Local<v8::Value>*, ScriptValueDeserializer&);
529 bool readWasmCompiledModule(v8::Local<v8::Value>*);
528 bool readRegExp(v8::Local<v8::Value>*); 530 bool readRegExp(v8::Local<v8::Value>*);
529 bool readBlob(v8::Local<v8::Value>*, bool isIndexed); 531 bool readBlob(v8::Local<v8::Value>*, bool isIndexed);
530 bool readFile(v8::Local<v8::Value>*, bool isIndexed); 532 bool readFile(v8::Local<v8::Value>*, bool isIndexed);
531 bool readFileList(v8::Local<v8::Value>*, bool isIndexed); 533 bool readFileList(v8::Local<v8::Value>*, bool isIndexed);
532 File* readFileHelper(); 534 File* readFileHelper();
533 File* readFileIndexHelper(); 535 File* readFileIndexHelper();
534 536
535 template<class T> 537 template<class T>
536 bool doReadUintHelper(T* value) 538 bool doReadUintHelper(T* value)
537 { 539 {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 ArrayBufferContentsArray* m_arrayBufferContents; 626 ArrayBufferContentsArray* m_arrayBufferContents;
625 ImageBitmapContentsArray* m_imageBitmapContents; 627 ImageBitmapContentsArray* m_imageBitmapContents;
626 Vector<v8::Local<v8::Value>> m_arrayBuffers; 628 Vector<v8::Local<v8::Value>> m_arrayBuffers;
627 Vector<v8::Local<v8::Value>> m_imageBitmaps; 629 Vector<v8::Local<v8::Value>> m_imageBitmaps;
628 uint32_t m_version; 630 uint32_t m_version;
629 }; 631 };
630 632
631 } // namespace blink 633 } // namespace blink
632 634
633 #endif // ScriptValueSerializer_h 635 #endif // ScriptValueSerializer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698