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

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

Issue 2522583002: Roll third_party/inspector_protocol to 4ad35c45aca9834b67ec2cb152c816ea1b7ceb48 (Closed)
Patch Set: updated README.chromium Created 4 years 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
« no previous file with comments | « components/ui_devtools/devtools_client.cc ('k') | content/browser/devtools/devtools_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/devtools/protocol/forward.h" 5 #include "content/browser/devtools/protocol/forward.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 class DevToolsAgentHostImpl; 9 class DevToolsAgentHostImpl;
10 10
11 class DevToolsSession : public protocol::FrontendChannel { 11 class DevToolsSession : public protocol::FrontendChannel {
12 public: 12 public:
13 DevToolsSession(DevToolsAgentHostImpl* agent_host, int session_id); 13 DevToolsSession(DevToolsAgentHostImpl* agent_host, int session_id);
14 ~DevToolsSession() override; 14 ~DevToolsSession() override;
15 15
16 void ResetDispatcher(); 16 void ResetDispatcher();
17 17
18 int session_id() { return session_id_; } 18 int session_id() { return session_id_; }
19 protocol::UberDispatcher* dispatcher() { return dispatcher_.get(); } 19 protocol::UberDispatcher* dispatcher() { return dispatcher_.get(); }
20 20
21 private: 21 private:
22 // protocol::FrontendChannel implementation. 22 // protocol::FrontendChannel implementation.
23 void sendProtocolResponse(int call_id, const std::string& message) override; 23 void sendProtocolResponse(
24 void sendProtocolNotification(const std::string& message) override; 24 int call_id,
25 std::unique_ptr<protocol::Serializable> message) override;
26 void sendProtocolNotification(
27 std::unique_ptr<protocol::Serializable> message) override;
25 void flushProtocolNotifications() override; 28 void flushProtocolNotifications() override;
26 29
27 DevToolsAgentHostImpl* agent_host_; 30 DevToolsAgentHostImpl* agent_host_;
28 int session_id_; 31 int session_id_;
29 std::unique_ptr<protocol::UberDispatcher> dispatcher_; 32 std::unique_ptr<protocol::UberDispatcher> dispatcher_;
30 }; 33 };
31 34
32 } // namespace content 35 } // namespace content
OLDNEW
« no previous file with comments | « components/ui_devtools/devtools_client.cc ('k') | content/browser/devtools/devtools_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698