summaryrefslogtreecommitdiff
path: root/deps/v8/third_party/inspector_protocol/lib/DispatcherBase_h.template
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/third_party/inspector_protocol/lib/DispatcherBase_h.template')
-rw-r--r--deps/v8/third_party/inspector_protocol/lib/DispatcherBase_h.template5
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/v8/third_party/inspector_protocol/lib/DispatcherBase_h.template b/deps/v8/third_party/inspector_protocol/lib/DispatcherBase_h.template
index 4aa0688adb..3862fb9a73 100644
--- a/deps/v8/third_party/inspector_protocol/lib/DispatcherBase_h.template
+++ b/deps/v8/third_party/inspector_protocol/lib/DispatcherBase_h.template
@@ -128,8 +128,9 @@ private:
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& notification, std::unique_ptr<Serializable> params = nullptr);
+ static std::unique_ptr<Serializable> createResponse(int callId, std::unique_ptr<Serializable> params);
+ static std::unique_ptr<Serializable> createNotification(const String& notification, std::unique_ptr<Serializable> params = nullptr);
+ static std::unique_ptr<Serializable> createErrorResponse(int callId, DispatchResponse::ErrorCode code, const String& message);
String serializeToJSON() override;
std::vector<uint8_t> serializeToBinary() override;