• Johannes Henkel's avatar
    [DevTools] Add V8InspectorSession::state(), which returns binary (CBOR). · 9d7c1947
    Johannes Henkel authored
    Keep the existing method for compatibility, by converting
    to json from CBOR using the inspector_protocol_encoding library,
    via a v8 specific interface library that directs routines for
    converting between strings and doubles to v8's implementations.
    
    This change also brings in the encoding.h / encoding.cc files from the
    upstream inspector_protocol project. The only modification here
    are the header guards, and the namespace. I will fix roll.py to
    make it so that we pick up future changes.
    
    third_party/inspector_protocol/BUILD.gn is specific to v8, by necessity.
    third_party/inspector_protocol/.clang-format is a copy of the upstream
    file. If we don't put this, we'll find ourselves auto-formatting the roll,
    which is annoying.
    
    This is a reland of
    https://chromium-review.googlesource.com/c/v8/v8/+/1590627 with the
    only modification in the DEPS file; this time I'm including
    third_party/inspector_protocol/encoding/encoding{.h,cc} in addition to
    the relative include there. Not sure why this is needed but I'm hoping
    it gets me past the presubmit which may resolve the include path
    relative to the V8 base (the ../../third_party is needed for when V8 is
    embedded into Chromium).
    
    Change-Id: Ic76b2b5faa7e1cbdceb15aff3f369e9a303e3e85
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1593646Reviewed-by: 's avatarAlexei Filippov <alph@chromium.org>
    Reviewed-by: 's avatarDmitry Gozman <dgozman@chromium.org>
    Commit-Queue: Johannes Henkel <johannes@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#61214}
    9d7c1947
Name
Last commit
Last update
..
BUILD.gn Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...
custom-preview.cc Loading commit data...
custom-preview.h Loading commit data...
injected-script.cc Loading commit data...
injected-script.h Loading commit data...
inspected-context.cc Loading commit data...
inspected-context.h Loading commit data...
inspector_protocol_config.json Loading commit data...
js_protocol-1.2.json Loading commit data...
js_protocol-1.3.json Loading commit data...
js_protocol.pdl Loading commit data...
remote-object-id.cc Loading commit data...
remote-object-id.h Loading commit data...
search-util.cc Loading commit data...
search-util.h Loading commit data...
string-16.cc Loading commit data...
string-16.h Loading commit data...
string-util.cc Loading commit data...
string-util.h Loading commit data...
test-interface.cc Loading commit data...
test-interface.h Loading commit data...
v8-console-agent-impl.cc Loading commit data...
v8-console-agent-impl.h Loading commit data...
v8-console-message.cc Loading commit data...
v8-console-message.h Loading commit data...
v8-console.cc Loading commit data...
v8-console.h Loading commit data...
v8-debugger-agent-impl.cc Loading commit data...
v8-debugger-agent-impl.h Loading commit data...
v8-debugger-script.cc Loading commit data...
v8-debugger-script.h Loading commit data...
v8-debugger.cc Loading commit data...
v8-debugger.h Loading commit data...
v8-heap-profiler-agent-impl.cc Loading commit data...
v8-heap-profiler-agent-impl.h Loading commit data...
v8-inspector-impl.cc Loading commit data...
v8-inspector-impl.h Loading commit data...
v8-inspector-protocol-encoding.cc Loading commit data...
v8-inspector-protocol-encoding.h Loading commit data...
v8-inspector-session-impl.cc Loading commit data...
v8-inspector-session-impl.h Loading commit data...
v8-profiler-agent-impl.cc Loading commit data...
v8-profiler-agent-impl.h Loading commit data...
v8-regex.cc Loading commit data...
v8-regex.h Loading commit data...
v8-runtime-agent-impl.cc Loading commit data...
v8-runtime-agent-impl.h Loading commit data...
v8-schema-agent-impl.cc Loading commit data...
v8-schema-agent-impl.h Loading commit data...
v8-stack-trace-impl.cc Loading commit data...
v8-stack-trace-impl.h Loading commit data...
v8-value-utils.cc Loading commit data...
v8-value-utils.h Loading commit data...
value-mirror.cc Loading commit data...
value-mirror.h Loading commit data...
wasm-translation.cc Loading commit data...
wasm-translation.h Loading commit data...