commit | b13e24ccee66d7e0590ce1266db9c906e3648561 | [log] [tgz] |
---|---|---|
author | Johannes Henkel <johannes@chromium.org> | Fri Mar 01 01:02:21 2019 |
committer | Johannes Henkel <johannes@chromium.org> | Fri Mar 01 01:02:21 2019 |
tree | c7a3ea0d5d75ed68a0ec2dc38654a54ed716f73d | |
parent | dab5e33f5a9fec9ffe47e08e39ebd9f897558b35 [diff] |
[DevTools] Support UTF16 strings with binary protocol (ip). base_string_adapter_{cc,h}.template: - StringUTF8Adapter is no longer needed. - StringUtil::fromUTF16 creates protocol::String from a given UTF16 payload. For the browser / embedder, they'll need to convert to UTF8 for std::string. - JSONReader::Read is now a deprecated method. Values_cpp.template: - CBORTokenTag::STRING16 is now supported, by calling StringUtil::fromUTF16. - A StringEncoder abstraction dispatches between the different strings, selecting the most appropriate CBOR encoding. Chromium PR: https://chromium-review.googlesource.com/c/chromium/src/+/1493152 V8 PR: https://chromium-review.googlesource.com/c/v8/v8/+/1493291 Change-Id: Idb7b09363d09911ad139bc561f9ac1cae29e7423
This package contains code generators and templates for the Chromium inspector protocol.
The canonical location of this package is at https://chromium.googlesource.com/deps/inspector_protocol/
In the Chromium tree, it's rolled into https://cs.chromium.org/chromium/src/third_party/inspector_protocol/
In the V8 tree, it's rolled into https://cs.chromium.org/chromium/src/v8/third_party/inspector_protocol/
See also Contributing to Chrome Devtools Protocol.
We‘re working on enabling standalone builds for parts of this package for testing and development, please feel free to ignore this for now. But, if you’re familiar with Chromium's development process and have the depot_tools installed, you may use these commands to fetch the package (and dependencies) and build and run the tests:
fetch inspector_protocol cd src gn gen out/Release ninja -C out/Release json_parser_test out/Release/json_parser_test
You'll probably also need to install g++, since Clang uses this to find the standard C++ headers. E.g.,
sudo apt-get install g++-8