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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW
« 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