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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/devtools_session.h
diff --git a/content/browser/devtools/devtools_session.h b/content/browser/devtools/devtools_session.h
new file mode 100644
index 0000000000000000000000000000000000000000..829e58965bfd509580972ab54d747b6eeafca7a3
--- /dev/null
+++ b/content/browser/devtools/devtools_session.h
@@ -0,0 +1,30 @@
+// 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/protocol/forward.h"
+
+namespace content {
+
+class DevToolsAgentHostImpl;
+
+class DevToolsSession : public protocol::FrontendChannel {
+ public:
+ DevToolsSession(DevToolsAgentHostImpl* agent_host, int session_id);
+ ~DevToolsSession() override;
+
+ int session_id() { return session_id_; }
+ protocol::UberDispatcher* dispatcher() { return dispatcher_.get(); }
+
+ private:
+ // protocol::FrontendChannel implementation.
+ void sendProtocolResponse(int call_id, const std::string& message) override;
+ void sendProtocolNotification(const std::string& message) override;
+ void flushProtocolNotifications() override;
+
+ DevToolsAgentHostImpl* agent_host_;
+ int session_id_;
+ std::unique_ptr<protocol::UberDispatcher> dispatcher_;
+};
+
+} // namespace content
« 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