Skip to content

Commit

Permalink
src: update inspector code to match upstream API
Browse files Browse the repository at this point in the history
PR-URL: #11752
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
  • Loading branch information
targos committed Mar 25, 2017
1 parent 9c9e2d7 commit ed12ea3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 { }
Expand Down

0 comments on commit ed12ea3

Please sign in to comment.