summaryrefslogtreecommitdiff
path: root/deps/v8/third_party/inspector_protocol/encoding/encoding.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/third_party/inspector_protocol/encoding/encoding.h')
-rw-r--r--deps/v8/third_party/inspector_protocol/encoding/encoding.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/deps/v8/third_party/inspector_protocol/encoding/encoding.h b/deps/v8/third_party/inspector_protocol/encoding/encoding.h
index c9ddd3a9be..47f6d22e9b 100644
--- a/deps/v8/third_party/inspector_protocol/encoding/encoding.h
+++ b/deps/v8/third_party/inspector_protocol/encoding/encoding.h
@@ -141,7 +141,16 @@ enum class Error {
CBOR_TRAILING_JUNK = 0x1e,
CBOR_MAP_START_EXPECTED = 0x1f,
CBOR_MAP_STOP_EXPECTED = 0x20,
- CBOR_ENVELOPE_SIZE_LIMIT_EXCEEDED = 0x21,
+ CBOR_ARRAY_START_EXPECTED = 0x21,
+ CBOR_ENVELOPE_SIZE_LIMIT_EXCEEDED = 0x22,
+
+ BINDINGS_MANDATORY_FIELD_MISSING = 0x23,
+ BINDINGS_BOOL_VALUE_EXPECTED = 0x24,
+ BINDINGS_INT32_VALUE_EXPECTED = 0x25,
+ BINDINGS_DOUBLE_VALUE_EXPECTED = 0x26,
+ BINDINGS_STRING_VALUE_EXPECTED = 0x27,
+ BINDINGS_STRING8_VALUE_EXPECTED = 0x28,
+ BINDINGS_BINARY_VALUE_EXPECTED = 0x29,
};
// A status value with position that can be copied. The default status
@@ -419,6 +428,17 @@ class CBORTokenizer {
span<uint8_t> GetBinary() const;
// To be called only if ::TokenTag() == CBORTokenTag::ENVELOPE.
+ // Returns the envelope including its payload; message which
+ // can be passed to the CBORTokenizer constructor, which will
+ // then see the envelope token first (looking at it a second time,
+ // basically).
+ span<uint8_t> GetEnvelope() const;
+
+ // To be called only if ::TokenTag() == CBORTokenTag::ENVELOPE.
+ // Returns only the payload inside the envelope, e.g., a map
+ // or an array. This is not a complete message by our
+ // IsCBORMessage definition, since it doesn't include the
+ // enclosing envelope (the header, basically).
span<uint8_t> GetEnvelopeContents() const;
private: