9d7c1947f5
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/+/1593646 Reviewed-by: Alexei Filippov <alph@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Johannes Henkel <johannes@chromium.org> Cr-Commit-Position: refs/heads/master@{#61214}
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
# Defines the Chromium style for automatic reformatting.
|
|
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
|
BasedOnStyle: Chromium
|
|
# This defaults to 'Auto'. Explicitly set it for a while, so that
|
|
# 'vector<vector<int> >' in existing files gets formatted to
|
|
# 'vector<vector<int>>'. ('Auto' means that clang-format will only use
|
|
# 'int>>' if the file already contains at least one such instance.)
|
|
Standard: Cpp11
|
|
|
|
# Make sure code like:
|
|
# IPC_BEGIN_MESSAGE_MAP()
|
|
# IPC_MESSAGE_HANDLER(WidgetHostViewHost_Update, OnUpdate)
|
|
# IPC_END_MESSAGE_MAP()
|
|
# gets correctly indented.
|
|
MacroBlockBegin: "^\
|
|
BEGIN_MSG_MAP|\
|
|
BEGIN_MSG_MAP_EX|\
|
|
BEGIN_SAFE_MSG_MAP_EX|\
|
|
CR_BEGIN_MSG_MAP_EX|\
|
|
IPC_BEGIN_MESSAGE_MAP|\
|
|
IPC_BEGIN_MESSAGE_MAP_WITH_PARAM|\
|
|
IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN|\
|
|
IPC_STRUCT_BEGIN|\
|
|
IPC_STRUCT_BEGIN_WITH_PARENT|\
|
|
IPC_STRUCT_TRAITS_BEGIN|\
|
|
POLPARAMS_BEGIN|\
|
|
PPAPI_BEGIN_MESSAGE_MAP$"
|
|
MacroBlockEnd: "^\
|
|
CR_END_MSG_MAP|\
|
|
END_MSG_MAP|\
|
|
IPC_END_MESSAGE_MAP|\
|
|
IPC_PROTOBUF_MESSAGE_TRAITS_END|\
|
|
IPC_STRUCT_END|\
|
|
IPC_STRUCT_TRAITS_END|\
|
|
POLPARAMS_END|\
|
|
PPAPI_END_MESSAGE_MAP$"
|