| 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 "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "bindings/core/v8/SerializationTag.h" | 9 #include "bindings/core/v8/SerializationTag.h" |
| 10 #include "bindings/core/v8/SerializedScriptValue.h" | 10 #include "bindings/core/v8/SerializedScriptValue.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 const uint8_t* pixelData, | 157 const uint8_t* pixelData, |
| 158 uint32_t pixelDataLength); | 158 uint32_t pixelDataLength); |
| 159 void writeRegExp(v8::Local<v8::String> pattern, v8::RegExp::Flags); | 159 void writeRegExp(v8::Local<v8::String> pattern, v8::RegExp::Flags); |
| 160 void writeTransferredMessagePort(uint32_t index); | 160 void writeTransferredMessagePort(uint32_t index); |
| 161 void writeTransferredArrayBuffer(uint32_t index); | 161 void writeTransferredArrayBuffer(uint32_t index); |
| 162 void writeTransferredImageBitmap(uint32_t index); | 162 void writeTransferredImageBitmap(uint32_t index); |
| 163 void writeTransferredOffscreenCanvas(uint32_t width, | 163 void writeTransferredOffscreenCanvas(uint32_t width, |
| 164 uint32_t height, | 164 uint32_t height, |
| 165 uint32_t canvasId, | 165 uint32_t canvasId, |
| 166 uint32_t clientId, | 166 uint32_t clientId, |
| 167 uint32_t sinkId, |
| 167 uint32_t localId, | 168 uint32_t localId, |
| 168 uint64_t nonce); | 169 uint64_t nonce); |
| 169 void writeTransferredSharedArrayBuffer(uint32_t index); | 170 void writeTransferredSharedArrayBuffer(uint32_t index); |
| 170 void writeObjectReference(uint32_t reference); | 171 void writeObjectReference(uint32_t reference); |
| 171 void writeObject(uint32_t numProperties); | 172 void writeObject(uint32_t numProperties); |
| 172 void writeSparseArray(uint32_t numProperties, uint32_t length); | 173 void writeSparseArray(uint32_t numProperties, uint32_t length); |
| 173 void writeDenseArray(uint32_t numProperties, uint32_t length); | 174 void writeDenseArray(uint32_t numProperties, uint32_t length); |
| 174 void writeReferenceCount(uint32_t numberOfReferences); | 175 void writeReferenceCount(uint32_t numberOfReferences); |
| 175 void writeGenerateFreshObject(); | 176 void writeGenerateFreshObject(); |
| 176 void writeGenerateFreshSparseArray(uint32_t length); | 177 void writeGenerateFreshSparseArray(uint32_t length); |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 bool completeMap(uint32_t length, v8::Local<v8::Value>*); | 633 bool completeMap(uint32_t length, v8::Local<v8::Value>*); |
| 633 bool completeSet(uint32_t length, v8::Local<v8::Value>*); | 634 bool completeSet(uint32_t length, v8::Local<v8::Value>*); |
| 634 void pushObjectReference(const v8::Local<v8::Value>&); | 635 void pushObjectReference(const v8::Local<v8::Value>&); |
| 635 bool tryGetTransferredMessagePort(uint32_t index, v8::Local<v8::Value>*); | 636 bool tryGetTransferredMessagePort(uint32_t index, v8::Local<v8::Value>*); |
| 636 bool tryGetTransferredArrayBuffer(uint32_t index, v8::Local<v8::Value>*); | 637 bool tryGetTransferredArrayBuffer(uint32_t index, v8::Local<v8::Value>*); |
| 637 bool tryGetTransferredImageBitmap(uint32_t index, v8::Local<v8::Value>*); | 638 bool tryGetTransferredImageBitmap(uint32_t index, v8::Local<v8::Value>*); |
| 638 bool tryGetTransferredOffscreenCanvas(uint32_t width, | 639 bool tryGetTransferredOffscreenCanvas(uint32_t width, |
| 639 uint32_t height, | 640 uint32_t height, |
| 640 uint32_t canvasId, | 641 uint32_t canvasId, |
| 641 uint32_t clientId, | 642 uint32_t clientId, |
| 643 uint32_t sinkId, |
| 642 uint32_t localId, | 644 uint32_t localId, |
| 643 uint64_t nonce, | 645 uint64_t nonce, |
| 644 v8::Local<v8::Value>*); | 646 v8::Local<v8::Value>*); |
| 645 bool tryGetTransferredSharedArrayBuffer(uint32_t index, | 647 bool tryGetTransferredSharedArrayBuffer(uint32_t index, |
| 646 v8::Local<v8::Value>*); | 648 v8::Local<v8::Value>*); |
| 647 bool tryGetObjectFromObjectReference(uint32_t reference, | 649 bool tryGetObjectFromObjectReference(uint32_t reference, |
| 648 v8::Local<v8::Value>*); | 650 v8::Local<v8::Value>*); |
| 649 uint32_t objectReferenceCount(); | 651 uint32_t objectReferenceCount(); |
| 650 | 652 |
| 651 protected: | 653 protected: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 676 ArrayBufferContentsArray* m_arrayBufferContents; | 678 ArrayBufferContentsArray* m_arrayBufferContents; |
| 677 ImageBitmapContentsArray* m_imageBitmapContents; | 679 ImageBitmapContentsArray* m_imageBitmapContents; |
| 678 Vector<v8::Local<v8::Value>> m_arrayBuffers; | 680 Vector<v8::Local<v8::Value>> m_arrayBuffers; |
| 679 Vector<v8::Local<v8::Value>> m_imageBitmaps; | 681 Vector<v8::Local<v8::Value>> m_imageBitmaps; |
| 680 uint32_t m_version; | 682 uint32_t m_version; |
| 681 }; | 683 }; |
| 682 | 684 |
| 683 } // namespace blink | 685 } // namespace blink |
| 684 | 686 |
| 685 #endif // ScriptValueSerializer_h | 687 #endif // ScriptValueSerializer_h |
| OLD | NEW |