Index: include/v8-inspector.h |
diff --git a/include/v8-inspector.h b/include/v8-inspector.h |
index 0855ac101b74ef11bf7dccbf13ce02e92e4498d0..c367451cbc6780115c86d54c2b3fa7fd30733d83 100644 |
--- a/include/v8-inspector.h |
+++ b/include/v8-inspector.h |
@@ -248,9 +248,15 @@ class V8_EXPORT V8Inspector { |
class V8_EXPORT Channel { |
public: |
virtual ~Channel() {} |
- virtual void sendProtocolResponse(int callId, |
- const StringView& message) = 0; |
- virtual void sendProtocolNotification(const StringView& message) = 0; |
+ virtual void sendProtocolResponse(int callId, const StringView& message) {} |
+ virtual void sendProtocolNotification(const StringView& message) {} |
+ virtual void sendResponse(int callId, |
+ std::unique_ptr<StringBuffer> message) { |
+ sendProtocolResponse(callId, message->string()); |
+ } |
+ virtual void sendNotification(std::unique_ptr<StringBuffer> message) { |
+ sendProtocolNotification(message->string()); |
+ } |
virtual void flushProtocolNotifications() = 0; |
}; |
virtual std::unique_ptr<V8InspectorSession> connect( |