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

Unified Diff: lib/Object_cpp.template

Issue 2526603002: [inspector_protocol] Introduce protocol::Serializable (Closed)
Patch Set: minor fix 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
« no previous file with comments | « lib/Maybe_h.template ('k') | lib/Object_h.template » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Object_cpp.template
diff --git a/lib/Object_cpp.template b/lib/Object_cpp.template
index 46b0c94b2dddc3f95ceebd421620a48b85dca8c8..91723a71e29ce4555dc4077f5fdf074b210931e9 100644
--- a/lib/Object_cpp.template
+++ b/lib/Object_cpp.template
@@ -8,7 +8,7 @@
namespace {{namespace}} {
{% endfor %}
-std::unique_ptr<Object> Object::parse(protocol::Value* value, ErrorSupport* errors)
+std::unique_ptr<Object> Object::fromValue(protocol::Value* value, ErrorSupport* errors)
{
protocol::DictionaryValue* dictionary = DictionaryValue::cast(value);
if (!dictionary) {
@@ -19,7 +19,7 @@ std::unique_ptr<Object> Object::parse(protocol::Value* value, ErrorSupport* erro
return std::unique_ptr<Object>(new Object(std::unique_ptr<DictionaryValue>(dictionary)));
}
-std::unique_ptr<protocol::DictionaryValue> Object::serialize() const
+std::unique_ptr<protocol::DictionaryValue> Object::toValue() const
{
return DictionaryValue::cast(m_object->clone());
}
« no previous file with comments | « lib/Maybe_h.template ('k') | lib/Object_h.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698