Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: third_party/inspector_protocol/lib/Values_cpp.template

Issue 2523583005: Roll third_party/inspector_protocol to 4ad35c45aca9834b67ec2cb152c816ea1b7ceb48 (Closed)
Patch Set: added default implementation Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/inspector_protocol/lib/Values_cpp.template
diff --git a/third_party/inspector_protocol/lib/Values_cpp.template b/third_party/inspector_protocol/lib/Values_cpp.template
index 1b5cdfee227b082b3d3f3850589054af6278e497..8fe128ef4880566f8a0964119e5d8570bab12398 100644
--- a/third_party/inspector_protocol/lib/Values_cpp.template
+++ b/third_party/inspector_protocol/lib/Values_cpp.template
@@ -93,14 +93,6 @@ bool Value::asSerialized(String*) const
return false;
}
-String Value::toJSONString() const
-{
- StringBuilder result;
- StringUtil::builderReserve(result, 512);
- writeJSON(&result);
- return result.toString();
-}
-
void Value::writeJSON(StringBuilder* output) const
{
DCHECK(m_type == TypeNull);
@@ -112,6 +104,14 @@ std::unique_ptr<Value> Value::clone() const
return Value::null();
}
+String Value::serialize()
+{
+ StringBuilder result;
+ StringUtil::builderReserve(result, 512);
+ writeJSON(&result);
+ return result.toString();
+}
+
bool FundamentalValue::asBoolean(bool* output) const
{
if (type() != TypeBoolean)
« no previous file with comments | « third_party/inspector_protocol/lib/ValueConversions_h.template ('k') | third_party/inspector_protocol/lib/Values_h.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698