Permalink
Browse files

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>
  • Loading branch information...
targos committed Feb 15, 2017
1 parent 9c9e2d7 commit ed12ea371c5352b4b13f9f1c4e0f577fbd30bb2a
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/inspector_agent.cc
View
@@ -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 { }

0 comments on commit ed12ea3

Please sign in to comment.