Commit 2ea9ad48 authored by Johannes Henkel's avatar Johannes Henkel Committed by Commit Bot

[DevTools] Roll inspector_protocol (Chromium)

Upstream PR: https://chromium-review.googlesource.com/c/deps/inspector_protocol/+/1990896

New Rev: dee0c0c65cc2df6284e75ae9fca083dc604c9fca

TBR=caseq

Change-Id: I66f6146ec38c1abfeeb04822cb7d1c7f64b580ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1992202
Commit-Queue: Johannes Henkel <johannes@chromium.org>
Reviewed-by: default avatarJohannes Henkel <johannes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729570}
parent 4b7ef458
...@@ -2,7 +2,7 @@ Name: inspector protocol ...@@ -2,7 +2,7 @@ Name: inspector protocol
Short Name: inspector_protocol Short Name: inspector_protocol
URL: https://chromium.googlesource.com/deps/inspector_protocol/ URL: https://chromium.googlesource.com/deps/inspector_protocol/
Version: 0 Version: 0
Revision: b29d8a5d2bb56b3e555bb27a0e035a9d571c5f28 Revision: dee0c0c65cc2df6284e75ae9fca083dc604c9fca
License: BSD License: BSD
License File: LICENSE License File: LICENSE
Security Critical: yes Security Critical: yes
......
...@@ -66,7 +66,6 @@ namespace {{param.name | to_title_case}}Enum { ...@@ -66,7 +66,6 @@ namespace {{param.name | to_title_case}}Enum {
class {{config.exported.export_macro}} {{type.id}} : public Exported { class {{config.exported.export_macro}} {{type.id}} : public Exported {
public: public:
static std::unique_ptr<protocol::{{domain.domain}}::API::{{type.id}}> fromJSONString(const {{config.exported.string_in}}& json);
static std::unique_ptr<protocol::{{domain.domain}}::API::{{type.id}}> fromBinary(const uint8_t* data, size_t length); static std::unique_ptr<protocol::{{domain.domain}}::API::{{type.id}}> fromBinary(const uint8_t* data, size_t length);
}; };
{% endfor %} {% endfor %}
......
...@@ -125,16 +125,6 @@ void {{type.id}}::writeBinary(std::vector<uint8_t>* out) const ...@@ -125,16 +125,6 @@ void {{type.id}}::writeBinary(std::vector<uint8_t>* out) const
AppendSerialized(out); AppendSerialized(out);
} }
// static
std::unique_ptr<API::{{type.id}}> API::{{type.id}}::fromJSONString(const {{config.exported.string_in}}& json)
{
ErrorSupport errors;
std::unique_ptr<Value> value = StringUtil::parseJSON(json);
if (!value)
return nullptr;
return protocol::{{domain.domain}}::{{type.id}}::fromValue(value.get(), &errors);
}
// static // static
std::unique_ptr<API::{{type.id}}> API::{{type.id}}::fromBinary(const uint8_t* data, size_t length) std::unique_ptr<API::{{type.id}}> API::{{type.id}}::fromBinary(const uint8_t* data, size_t length)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment