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:
parent
9c9e2d7f4a
commit
ed12ea371c
@ -234,12 +234,15 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel {
|
||||
explicit ChannelImpl(AgentImpl* agent): agent_(agent) {}
|
||||
virtual ~ChannelImpl() {}
|
||||
private:
|
||||
void sendProtocolResponse(int callId, const StringView& message) override {
|
||||
sendMessageToFrontend(message);
|
||||
void sendResponse(
|
||||
int callId,
|
||||
std::unique_ptr<v8_inspector::StringBuffer> message) override {
|
||||
sendMessageToFrontend(message->string());
|
||||
}
|
||||
|
||||
void sendProtocolNotification(const StringView& message) override {
|
||||
sendMessageToFrontend(message);
|
||||
void sendNotification(
|
||||
std::unique_ptr<v8_inspector::StringBuffer> message) override {
|
||||
sendMessageToFrontend(message->string());
|
||||
}
|
||||
|
||||
void flushProtocolNotifications() override { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user