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

Side by Side Diff: content/browser/devtools/devtools_session.h

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/protocol/forward.h"
6
7 namespace content {
8
9 class DevToolsAgentHostImpl;
10
11 class DevToolsSession : public protocol::FrontendChannel {
12 public:
13 DevToolsSession(DevToolsAgentHostImpl* agent_host, int session_id);
14 ~DevToolsSession() override;
15
16 int session_id() { return session_id_; }
17 protocol::UberDispatcher* dispatcher() { return dispatcher_.get(); }
18
19 private:
20 // protocol::FrontendChannel implementation.
21 void sendProtocolResponse(int call_id, const std::string& message) override;
22 void sendProtocolNotification(const std::string& message) override;
23 void flushProtocolNotifications() override;
24
25 DevToolsAgentHostImpl* agent_host_;
26 int session_id_;
27 std::unique_ptr<protocol::UberDispatcher> dispatcher_;
28 };
29
30 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_agent_host_impl.cc ('k') | content/browser/devtools/devtools_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698