src: update inspector code to match upstream API

PR-URL: https://github.com/nodejs/node/pull/11752
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
This commit is contained in:
Michaël Zasso 2017-02-15 16:48:59 +01:00
parent 9c9e2d7f4a
commit ed12ea371c

View File

@ -234,12 +234,15 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel {
explicit ChannelImpl(AgentImpl* agent): agent_(agent) {} explicit ChannelImpl(AgentImpl* agent): agent_(agent) {}
virtual ~ChannelImpl() {} virtual ~ChannelImpl() {}
private: private:
void sendProtocolResponse(int callId, const StringView& message) override { void sendResponse(
sendMessageToFrontend(message); int callId,
std::unique_ptr<v8_inspector::StringBuffer> message) override {
sendMessageToFrontend(message->string());
} }
void sendProtocolNotification(const StringView& message) override { void sendNotification(
sendMessageToFrontend(message); std::unique_ptr<v8_inspector::StringBuffer> message) override {
sendMessageToFrontend(message->string());
} }
void flushProtocolNotifications() override { } void flushProtocolNotifications() override { }