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

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

Issue 1862033002: Make OffscreenCanvas Transferable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no need to register, taking the same approach as extractTransferables Created 4 years, 8 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 SerializationTag_h 5 #ifndef SerializationTag_h
6 #define SerializationTag_h 6 #define SerializationTag_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 // Serialization format is a sequence of tags followed by zero or more data argu ments. 10 // Serialization format is a sequence of tags followed by zero or more data argu ments.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // fills it with the last numProp erties name,value pairs pushed onto the deserialization stack 54 // fills it with the last numProp erties name,value pairs pushed onto the deserialization stack
55 SparseArrayTag = '@', // numProperties:uint32_t, length:uint32_t -> pops the last object from the open stack; 55 SparseArrayTag = '@', // numProperties:uint32_t, length:uint32_t -> pops the last object from the open stack;
56 // fills it with the last numProperties name,value pairs pushed onto the deserialization st ack 56 // fills it with the last numProperties name,value pairs pushed onto the deserialization st ack
57 DenseArrayTag = '$', // numProperties:uint32_t, length:uint32_t -> pops the last object from the open stack; 57 DenseArrayTag = '$', // numProperties:uint32_t, length:uint32_t -> pops the last object from the open stack;
58 // fills it with the last length elements and numProperties name,value pairs pushed onto des erialization stack 58 // fills it with the last length elements and numProperties name,value pairs pushed onto des erialization stack
59 RegExpTag = 'R', // pattern:RawString, flags:uint32_t -> RegExp (ref) 59 RegExpTag = 'R', // pattern:RawString, flags:uint32_t -> RegExp (ref)
60 ArrayBufferTag = 'B', // byteLength:uint32_t, data:byte[byteLength] -> Array Buffer (ref) 60 ArrayBufferTag = 'B', // byteLength:uint32_t, data:byte[byteLength] -> Array Buffer (ref)
61 ArrayBufferTransferTag = 't', // index:uint32_t -> ArrayBuffer. For ArrayBuf fer transfer 61 ArrayBufferTransferTag = 't', // index:uint32_t -> ArrayBuffer. For ArrayBuf fer transfer
62 ImageBitmapTag = 'g', // size:uint32_t, data:byte[size] -> ImageBitmap (ref) 62 ImageBitmapTag = 'g', // size:uint32_t, data:byte[size] -> ImageBitmap (ref)
63 ImageBitmapTransferTag = 'G', // index:uint32_t -> ImageBitmap. For ImageBit map transfer 63 ImageBitmapTransferTag = 'G', // index:uint32_t -> ImageBitmap. For ImageBit map transfer
64 OffscreenCanvasTransferTag = 'H', // index, width, height, id:uint32_t -> Of fscreenCanvas. For OffscreenCanvas transfer
64 ArrayBufferViewTag = 'V', // subtag:byte, byteOffset:uint32_t, byteLength:ui nt32_t -> ArrayBufferView (ref). Consumes an ArrayBuffer from the top of the des erialization stack. 65 ArrayBufferViewTag = 'V', // subtag:byte, byteOffset:uint32_t, byteLength:ui nt32_t -> ArrayBufferView (ref). Consumes an ArrayBuffer from the top of the des erialization stack.
65 SharedArrayBufferTransferTag = 'u', // index:uint32_t -> SharedArrayBuffer. For SharedArrayBuffer transfer 66 SharedArrayBufferTransferTag = 'u', // index:uint32_t -> SharedArrayBuffer. For SharedArrayBuffer transfer
66 CryptoKeyTag = 'K', // subtag:byte, props, usages:uint32_t, keyDataLength:ui nt32_t, keyData:byte[keyDataLength] 67 CryptoKeyTag = 'K', // subtag:byte, props, usages:uint32_t, keyDataLength:ui nt32_t, keyData:byte[keyDataLength]
67 // If subtag=AesKeyTag: 68 // If subtag=AesKeyTag:
68 // props = keyLengthBytes:uint32_t, algorithmId:uint 32_t 69 // props = keyLengthBytes:uint32_t, algorithmId:uint 32_t
69 // If subtag=HmacKeyTag: 70 // If subtag=HmacKeyTag:
70 // props = keyLengthBytes:uint32_t, hashId:uint32_t 71 // props = keyLengthBytes:uint32_t, hashId:uint32_t
71 // If subtag=RsaHashedKeyTag: 72 // If subtag=RsaHashedKeyTag:
72 // props = algorithmId:uint32_t, type:uint32_t, modu lusLengthBits:uint32_t, publicExponentLength:uint32_t, publicExponent:byte[publi cExponentLength], hashId:uint32_t 73 // props = algorithmId:uint32_t, type:uint32_t, modu lusLengthBits:uint32_t, publicExponentLength:uint32_t, publicExponent:byte[publi cExponentLength], hashId:uint32_t
73 // If subtag=EcKeyTag: 74 // If subtag=EcKeyTag:
(...skipping 27 matching lines...) Expand all
101 IntArrayTag = 'd', 102 IntArrayTag = 'd',
102 UnsignedIntArrayTag = 'D', 103 UnsignedIntArrayTag = 'D',
103 FloatArrayTag = 'f', 104 FloatArrayTag = 'f',
104 DoubleArrayTag = 'F', 105 DoubleArrayTag = 'F',
105 DataViewTag = '?' 106 DataViewTag = '?'
106 }; 107 };
107 108
108 } // namespace blink 109 } // namespace blink
109 110
110 #endif 111 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698