OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/browser/devtools/devtools_session.h" |
| 6 |
| 7 #include "content/browser/devtools/devtools_agent_host_impl.h" |
| 8 #include "content/browser/devtools/protocol/protocol.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 DevToolsSession::DevToolsSession( |
| 13 DevToolsAgentHostImpl* agent_host, |
| 14 int session_id) |
| 15 : agent_host_(agent_host), |
| 16 session_id_(session_id), |
| 17 dispatcher_(new protocol::UberDispatcher(this)) { |
| 18 } |
| 19 |
| 20 DevToolsSession::~DevToolsSession() {} |
| 21 |
| 22 void DevToolsSession::sendProtocolResponse( |
| 23 int call_id, |
| 24 const std::string& message) { |
| 25 agent_host_->SendMessageToClient(session_id_, message); |
| 26 } |
| 27 |
| 28 void DevToolsSession::sendProtocolNotification(const std::string& message) { |
| 29 agent_host_->SendMessageToClient(session_id_, message); |
| 30 } |
| 31 |
| 32 void DevToolsSession::flushProtocolNotifications() { |
| 33 } |
| 34 |
| 35 } // namespace content |
OLD | NEW |