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

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

Issue 2522583002: Roll third_party/inspector_protocol to 4ad35c45aca9834b67ec2cb152c816ea1b7ceb48 (Closed)
Patch Set: addressed comments 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/DispatcherBase_h.template
diff --git a/third_party/inspector_protocol/lib/DispatcherBase_h.template b/third_party/inspector_protocol/lib/DispatcherBase_h.template
index 9838637c59340ed91dbcc0aad51b7697cf5373bf..1edf8303b67fabfceca6be5b0f05c09542519a66 100644
--- a/third_party/inspector_protocol/lib/DispatcherBase_h.template
+++ b/third_party/inspector_protocol/lib/DispatcherBase_h.template
@@ -125,6 +125,22 @@ private:
protocol::HashMap<String, std::unique_ptr<protocol::DispatcherBase>> m_dispatchers;
};
+class InternalResponse : public Serializable {
+ PROTOCOL_DISALLOW_COPY(InternalResponse);
+public:
+ static std::unique_ptr<InternalResponse> createResponse(int callId, std::unique_ptr<Serializable> params);
+ static std::unique_ptr<InternalResponse> createNotification(const String& type, std::unique_ptr<Serializable> params = nullptr);
+
+ String serialize();
dgozman 2016/11/22 19:39:24 override
kozy 2016/11/22 21:01:27 Done.
+
+private:
+ InternalResponse(int callId, const String& type, std::unique_ptr<Serializable> params);
dgozman 2016/11/22 19:39:24 Also need ~InternalResponse() override {}
kozy 2016/11/22 21:01:27 Done.
+
+ int m_callId;
+ String m_type;
dgozman 2016/11/22 19:39:24 m_notification
kozy 2016/11/22 21:01:27 Done.
+ std::unique_ptr<Serializable> m_params;
+};
+
{% for namespace in config.protocol.namespace %}
} // namespace {{namespace}}
{% endfor %}

Powered by Google App Engine
This is Rietveld 408576698