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

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

Issue 2708563002: DevTools: allow embedder handling async remote debugger commands. (Closed)
Patch Set: extract variable Created 3 years, 10 months 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 | « no previous file | 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
index 26b2005f0b5722156a3ed6a0192a8ffac853da0a..ea5456a4d3576b2b09a524491ee4c3747e20b44b 100644
--- a/content/browser/devtools/devtools_session.h
+++ b/content/browser/devtools/devtools_session.h
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/memory/weak_ptr.h"
+#include "base/values.h"
#include "content/browser/devtools/protocol/devtools_domain_handler.h"
#include "content/browser/devtools/protocol/protocol.h"
@@ -33,6 +35,7 @@ class DevToolsSession : public protocol::FrontendChannel {
DevToolsAgentHostClient* client() const { return client_; }
private:
+ void sendResponse(std::unique_ptr<base::DictionaryValue> response);
// protocol::FrontendChannel implementation.
void sendProtocolResponse(
int call_id,
@@ -48,6 +51,8 @@ class DevToolsSession : public protocol::FrontendChannel {
std::unique_ptr<protocol::DevToolsDomainHandler>> handlers_;
RenderFrameHostImpl* host_;
std::unique_ptr<protocol::UberDispatcher> dispatcher_;
+
+ base::WeakPtrFactory<DevToolsSession> weak_factory_;
};
} // namespace content
« no previous file with comments | « no previous file | content/browser/devtools/devtools_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698