Index: content/browser/devtools/devtools_session.cc |
diff --git a/content/browser/devtools/devtools_session.cc b/content/browser/devtools/devtools_session.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cf37d6cb0f357fd051b4070e5d3e2ca081bad807 |
--- /dev/null |
+++ b/content/browser/devtools/devtools_session.cc |
@@ -0,0 +1,35 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/browser/devtools/devtools_session.h" |
+ |
+#include "content/browser/devtools/devtools_agent_host_impl.h" |
+#include "content/browser/devtools/protocol/protocol.h" |
+ |
+namespace content { |
+ |
+DevToolsSession::DevToolsSession( |
+ DevToolsAgentHostImpl* agent_host, |
+ int session_id) |
+ : agent_host_(agent_host), |
+ session_id_(session_id), |
+ dispatcher_(new protocol::UberDispatcher(this)) { |
+} |
+ |
+DevToolsSession::~DevToolsSession() {} |
+ |
+void DevToolsSession::sendProtocolResponse( |
+ int call_id, |
+ const std::string& message) { |
+ agent_host_->SendMessageToClient(session_id_, message); |
+} |
+ |
+void DevToolsSession::sendProtocolNotification(const std::string& message) { |
+ agent_host_->SendMessageToClient(session_id_, message); |
+} |
+ |
+void DevToolsSession::flushProtocolNotifications() { |
+} |
+ |
+} // namespace content |