Skip to content

Commit ed12ea3

Browse files
committed
src: update inspector code to match upstream API
PR-URL: #11752 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
1 parent 9c9e2d7 commit ed12ea3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/inspector_agent.cc

+7-4
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,15 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel {
234234
explicit ChannelImpl(AgentImpl* agent): agent_(agent) {}
235235
virtual ~ChannelImpl() {}
236236
private:
237-
void sendProtocolResponse(int callId, const StringView& message) override {
238-
sendMessageToFrontend(message);
237+
void sendResponse(
238+
int callId,
239+
std::unique_ptr<v8_inspector::StringBuffer> message) override {
240+
sendMessageToFrontend(message->string());
239241
}
240242

241-
void sendProtocolNotification(const StringView& message) override {
242-
sendMessageToFrontend(message);
243+
void sendNotification(
244+
std::unique_ptr<v8_inspector::StringBuffer> message) override {
245+
sendMessageToFrontend(message->string());
243246
}
244247

245248
void flushProtocolNotifications() override { }

0 commit comments

Comments
 (0)