| Index: third_party/WebKit/Source/bindings/core/v8/SerializationTag.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/SerializationTag.h b/third_party/WebKit/Source/bindings/core/v8/SerializationTag.h
|
| index 81b9b9a2f0b7c1dca6a71c61c09f8ae0a7b2177d..0eec32dde04b48b43c0de7643a686308be6d0f84 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/SerializationTag.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/SerializationTag.h
|
| @@ -63,9 +63,9 @@ enum SerializationTag {
|
| ImageDataTag = '#', // width:uint32_t, height:uint32_t,
|
| // pixelDataLength:uint32_t, data:byte[pixelDataLength]
|
| // -> ImageData (ref)
|
| - // numProperties:uint32_t -> pops the last object from the open stack; fills
|
| - // it with the last numProperties name,value pairs pushed onto the
|
| - // deserialization stack
|
| + // numProperties:uint32_t -> pops the last object from
|
| + // the open stack; fills it with the last numProperties
|
| + // name,value pairs pushed onto the deserialization stack
|
| ObjectTag = '{',
|
| // numProperties:uint32_t, length:uint32_t -> pops the last object from the
|
| // open stack; fills it with the last numProperties name,value pairs pushed
|
| @@ -86,28 +86,33 @@ enum SerializationTag {
|
| OffscreenCanvasTransferTag = 'H', // index, width, height, id:uint32_t ->
|
| // OffscreenCanvas. For OffscreenCanvas
|
| // transfer
|
| - // subtag:byte, byteOffset:uint32_t, byteLength:uint32_t -> ArrayBufferView
|
| - // (ref). Consumes an ArrayBuffer from the top of the deserialization stack.
|
| + // subtag:byte, byteOffset:uint32_t,
|
| + // byteLength:uint32_t -> ArrayBufferView
|
| + // (ref). Consumes an ArrayBuffer from the
|
| + // top of the deserialization stack.
|
| ArrayBufferViewTag = 'V',
|
| SharedArrayBufferTransferTag = 'u', // index:uint32_t -> SharedArrayBuffer.
|
| // For SharedArrayBuffer transfer
|
| WasmModuleTag = 'W',
|
| RawBytesTag = 'y',
|
| - CryptoKeyTag = 'K', // subtag:byte, props, usages:uint32_t,
|
| - // keyDataLength:uint32_t, keyData:byte[keyDataLength]
|
| - // If subtag=AesKeyTag:
|
| - // props = keyLengthBytes:uint32_t, algorithmId:uint32_t
|
| - // If subtag=HmacKeyTag:
|
| - // props = keyLengthBytes:uint32_t, hashId:uint32_t
|
| - // If subtag=RsaHashedKeyTag:
|
| - // props = algorithmId:uint32_t, type:uint32_t,
|
| - // modulusLengthBits:uint32_t,
|
| - // publicExponentLength:uint32_t,
|
| - // publicExponent:byte[publicExponentLength],
|
| - // hashId:uint32_t
|
| - // If subtag=EcKeyTag:
|
| - // props = algorithmId:uint32_t, type:uint32_t,
|
| - // namedCurve:uint32_t
|
| + CryptoKeyTag =
|
| + 'K', // subtag:byte, props, usages:uint32_t,
|
| + // keyDataLength:uint32_t, keyData:byte[keyDataLength]
|
| + // If subtag=AesKeyTag:
|
| + // props = keyLengthBytes:uint32_t,
|
| + // algorithmId:uint32_t
|
| + // If subtag=HmacKeyTag:
|
| + // props = keyLengthBytes:uint32_t,
|
| + // hashId:uint32_t
|
| + // If subtag=RsaHashedKeyTag:
|
| + // props = algorithmId:uint32_t, type:uint32_t,
|
| + // modulusLengthBits:uint32_t,
|
| + // publicExponentLength:uint32_t,
|
| + // publicExponent:byte[publicExponentLength],
|
| + // hashId:uint32_t
|
| + // If subtag=EcKeyTag:
|
| + // props = algorithmId:uint32_t, type:uint32_t,
|
| + // namedCurve:uint32_t
|
| RTCCertificateTag = 'k', // length:uint32_t, pemPrivateKey:WebCoreString,
|
| // pemCertificate:WebCoreString
|
| ObjectReferenceTag = '^', // ref:uint32_t -> reference table[ref]
|
| @@ -129,15 +134,18 @@ enum SerializationTag {
|
| 'C', // elementId:uint64_t, bitfields:uint32_t -> CompositorProxy (ref)
|
| MapTag = ':', // length:uint32_t -> pops the last object from the open stack
|
| // (it will be a Map);
|
| - // fills it with the last length elements pushed
|
| - // onto the deserialization stack, treating them
|
| - // as key/value pairs and passing them to
|
| - // Map::Set;
|
| - // length must be an even number.
|
| + // fills it with the last length
|
| + // elements pushed onto the
|
| + // deserialization stack, treating
|
| + // them as key/value pairs and
|
| + // passing them to Map::Set;
|
| + // length must be an even number.
|
| SetTag = ',', // length:uint32_t -> pops the last object from the open stack
|
| // (it will be a Set);
|
| - // fills it with the last length elements pushed
|
| - // onto the deserialization stack, using Set::Add
|
| + // fills it with the last length
|
| + // elements pushed onto the
|
| + // deserialization stack, using
|
| + // Set::Add
|
| GenerateFreshMapTag = ';', // -> empty Map allocated an object ID and pushed
|
| // onto the open stack (ref)
|
| GenerateFreshSetTag = '\'', // -> empty Set allocated an object ID and pushed
|
|
|