diff options
Diffstat (limited to 'deps/v8/src/inspector/string-util.h')
-rw-r--r-- | deps/v8/src/inspector/string-util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/deps/v8/src/inspector/string-util.h b/deps/v8/src/inspector/string-util.h index 97aaa93eb7..4ab39bd6d1 100644 --- a/deps/v8/src/inspector/string-util.h +++ b/deps/v8/src/inspector/string-util.h @@ -5,6 +5,7 @@ #ifndef V8_INSPECTOR_STRING_UTIL_H_ #define V8_INSPECTOR_STRING_UTIL_H_ +#include <stdint.h> #include <memory> #include "src/base/logging.h" @@ -60,6 +61,19 @@ class StringUtil { static std::unique_ptr<protocol::Value> parseJSON(const StringView& json); }; +// A read-only sequence of uninterpreted bytes with reference-counted storage. +// Though the templates for generating the protocol bindings reference +// this type, js_protocol.pdl doesn't have a field of type 'binary', so +// therefore it's unnecessary to provide an implementation here. +class Binary { + public: + const uint8_t* data() const { UNIMPLEMENTED(); } + size_t size() const { UNIMPLEMENTED(); } + String toBase64() const { UNIMPLEMENTED(); } + static Binary fromBase64(const String& base64, bool* success) { + UNIMPLEMENTED(); + } +}; } // namespace protocol v8::Local<v8::String> toV8String(v8::Isolate*, const String16&); |