Skip to content

Commit ed12ea3

Browse files
committed
src: update inspector code to match upstream API
PR-URL: #11752 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
1 parent 9c9e2d7 commit ed12ea3

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎src/inspector_agent.cc‎

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

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

245248
voidflushProtocolNotifications() override { }

0 commit comments

Comments
 (0)