Commit 921d5ca1 authored by Johannes Henkel's avatar Johannes Henkel Committed by Commit Bot

[DevTools] Roll inspector_protocol (V8)

New Rev: 32a87e9a751db8f2903532134a7c8fc6932620ba
Removes protocol::SerializedValue

Upstream Review:
https://chromium-review.googlesource.com/c/deps/inspector_protocol/+/1991952

Change-Id: I4b3f216e748d60c371fac2fd22b94948dc29de72
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1991971Reviewed-by: 's avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Johannes Henkel <johannes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65678}
parent 7383f3ae
...@@ -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: dee0c0c65cc2df6284e75ae9fca083dc604c9fca Revision: 32a87e9a751db8f2903532134a7c8fc6932620ba
License: BSD License: BSD
License File: LICENSE License File: LICENSE
Security Critical: no Security Critical: no
......
...@@ -447,26 +447,6 @@ std::unique_ptr<Value> BinaryValue::clone() const ...@@ -447,26 +447,6 @@ std::unique_ptr<Value> BinaryValue::clone() const
return BinaryValue::create(m_binaryValue); return BinaryValue::create(m_binaryValue);
} }
void SerializedValue::writeJSON(StringBuilder* output) const
{
DCHECK(type() == TypeSerialized);
StringUtil::builderAppend(*output, m_serializedJSON);
}
std::vector<uint8_t> SerializedValue::TakeSerialized() && {
return std::move(m_serializedBinary);
}
void SerializedValue::AppendSerialized(std::vector<uint8_t>* output) const
{
DCHECK(type() == TypeSerialized);
output->insert(output->end(), m_serializedBinary.begin(), m_serializedBinary.end());
}
std::unique_ptr<Value> SerializedValue::clone() const
{
return std::unique_ptr<SerializedValue>(new SerializedValue(m_serializedJSON, m_serializedBinary));
}
DictionaryValue::~DictionaryValue() DictionaryValue::~DictionaryValue()
{ {
......
...@@ -39,7 +39,6 @@ public: ...@@ -39,7 +39,6 @@ public:
TypeBinary, TypeBinary,
TypeObject, TypeObject,
TypeArray, TypeArray,
TypeSerialized,
TypeImported TypeImported
}; };
...@@ -147,32 +146,6 @@ private: ...@@ -147,32 +146,6 @@ private:
Binary m_binaryValue; Binary m_binaryValue;
}; };
class {{config.lib.export_macro}} SerializedValue : public Value {
public:
static std::unique_ptr<SerializedValue> fromJSON(const String& value)
{
return std::unique_ptr<SerializedValue>(new SerializedValue(value));
}
static std::unique_ptr<SerializedValue> fromBinary(std::vector<uint8_t> value)
{
return std::unique_ptr<SerializedValue>(new SerializedValue(std::move(value)));
}
void writeJSON(StringBuilder* output) const override;
std::vector<uint8_t> TakeSerialized() && override;
void AppendSerialized(std::vector<uint8_t>* bytes) const override;
std::unique_ptr<Value> clone() const override;
private:
explicit SerializedValue(const String& json) : Value(TypeSerialized), m_serializedJSON(json) { }
explicit SerializedValue(std::vector<uint8_t> binary) : Value(TypeSerialized), m_serializedBinary(std::move(binary)) { }
SerializedValue(const String& json, const std::vector<uint8_t>& binary)
: Value(TypeSerialized), m_serializedJSON(json), m_serializedBinary(binary) { }
String m_serializedJSON;
std::vector<uint8_t> m_serializedBinary;
};
class {{config.lib.export_macro}} DictionaryValue : public Value { class {{config.lib.export_macro}} DictionaryValue : public Value {
public: public:
using Entry = std::pair<String, Value*>; using Entry = std::pair<String, Value*>;
......
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