Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Unified Diff: content/browser/devtools/devtools_session.cc

Issue 2499343002: [DevTools] Introduce DevToolsSession. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/devtools/devtools_session.h ('k') | content/browser/devtools/forwarding_agent_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/devtools/devtools_session.h ('k') | content/browser/devtools/forwarding_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698