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 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 | 10 // Serialization format is a sequence of tags followed by zero or more data |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 'L', // length:uint32_t, files:int32_t[length] -> FileList (ref) | 52 'L', // length:uint32_t, files:int32_t[length] -> FileList (ref) |
53 kImageDataTag = '#', // width:uint32_t, height:uint32_t, | 53 kImageDataTag = '#', // width:uint32_t, height:uint32_t, |
54 // pixelDataLength:uint32_t, data:byte[pixelDataLength] | 54 // pixelDataLength:uint32_t, data:byte[pixelDataLength] |
55 // -> ImageData (ref) | 55 // -> ImageData (ref) |
56 kImageBitmapTag = 'g', // size:uint32_t, data:byte[size] -> ImageBitmap (ref) | 56 kImageBitmapTag = 'g', // size:uint32_t, data:byte[size] -> ImageBitmap (ref) |
57 kImageBitmapTransferTag = | 57 kImageBitmapTransferTag = |
58 'G', // index:uint32_t -> ImageBitmap. For ImageBitmap transfer | 58 'G', // index:uint32_t -> ImageBitmap. For ImageBitmap transfer |
59 kOffscreenCanvasTransferTag = 'H', // index, width, height, id:uint32_t -> | 59 kOffscreenCanvasTransferTag = 'H', // index, width, height, id:uint32_t -> |
60 // OffscreenCanvas. For OffscreenCanvas | 60 // OffscreenCanvas. For OffscreenCanvas |
61 // transfer | 61 // transfer |
62 kCryptoKeyTag = 'K', // subtag:byte, props, usages:uint32_t, | 62 kDOMPointTag = 'Q', // x:Double, y:Double, z:Double, w:Double |
jbroman
2017/05/15 17:02:54
At times like these I wish we had just used consec
fserb
2017/05/15 17:52:16
Do those need to be printable chars? Or could I cr
jbroman
2017/05/15 18:00:30
They don't need to be printable, no. But the exist
| |
63 kDOMPointReadOnlyTag = 'W', // x:Double, y:Double, z:Double, w:Double | |
64 kDOMRectTag = 'E', // x:Double, y:Double, width:Double, height:Double | |
65 kDOMRectReadOnlyTag = 'R', // x:Double, y:Double, width:Double, height:Double | |
66 kDOMQuadTag = 'T', // p1:Double, p2:Double, p3:Double, p4:Double | |
67 kDOMMatrixTag = 'Y', // m11..m44: 16 Double | |
68 kDOMMatrixReadOnlyTag = 'U', // m11..m44: 16 Double | |
69 kDOMMatrix2DTag = 'I', // a..f: 6 Double | |
70 kDOMMatrix2DReadOnlyTag = 'O', // a..f: 6 Double | |
71 kCryptoKeyTag = 'K', // subtag:byte, props, usages:uint32_t, | |
63 // keyDataLength:uint32_t, keyData:byte[keyDataLength] | 72 // keyDataLength:uint32_t, keyData:byte[keyDataLength] |
64 // If subtag=AesKeyTag: | 73 // If subtag=AesKeyTag: |
65 // props = keyLengthBytes:uint32_t, algorithmId:uint32_t | 74 // props = keyLengthBytes:uint32_t, algorithmId:uint32_t |
66 // If subtag=HmacKeyTag: | 75 // If subtag=HmacKeyTag: |
67 // props = keyLengthBytes:uint32_t, hashId:uint32_t | 76 // props = keyLengthBytes:uint32_t, hashId:uint32_t |
68 // If subtag=RsaHashedKeyTag: | 77 // If subtag=RsaHashedKeyTag: |
69 // props = algorithmId:uint32_t, type:uint32_t, | 78 // props = algorithmId:uint32_t, type:uint32_t, |
70 // modulusLengthBits:uint32_t, | 79 // modulusLengthBits:uint32_t, |
71 // publicExponentLength:uint32_t, | 80 // publicExponentLength:uint32_t, |
72 // publicExponent:byte[publicExponentLength], | 81 // publicExponent:byte[publicExponentLength], |
73 // hashId:uint32_t | 82 // hashId:uint32_t |
74 // If subtag=EcKeyTag: | 83 // If subtag=EcKeyTag: |
75 // props = algorithmId:uint32_t, type:uint32_t, | 84 // props = algorithmId:uint32_t, type:uint32_t, |
76 // namedCurve:uint32_t | 85 // namedCurve:uint32_t |
77 kRTCCertificateTag = 'k', // length:uint32_t, pemPrivateKey:WebCoreString, | 86 kRTCCertificateTag = 'k', // length:uint32_t, pemPrivateKey:WebCoreString, |
78 // pemCertificate:WebCoreString | 87 // pemCertificate:WebCoreString |
79 kCompositorProxyTag = | 88 kCompositorProxyTag = |
80 'C', // elementId:uint64_t, bitfields:uint32_t -> CompositorProxy (ref) | 89 'C', // elementId:uint64_t, bitfields:uint32_t -> CompositorProxy (ref) |
81 kVersionTag = 0xFF // version:uint32_t -> Uses this as the file version. | 90 kVersionTag = 0xFF // version:uint32_t -> Uses this as the file version. |
82 }; | 91 }; |
83 | 92 |
84 } // namespace blink | 93 } // namespace blink |
85 | 94 |
86 #endif | 95 #endif |
OLD | NEW |