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

Unified Diff: content/renderer/devtools/devtools_agent.h

Issue 2858043003: [DevTools] Pass session id in detach request (Closed)
Patch Set: test compile Created 3 years, 7 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 | « content/public/renderer/render_frame.h ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools/devtools_agent.h
diff --git a/content/renderer/devtools/devtools_agent.h b/content/renderer/devtools/devtools_agent.h
index d59e838db33b1fb6b6b4f86884af88a89e6abf76..4bdf488a010324e0a2107c14c6768296f44687d3 100644
--- a/content/renderer/devtools/devtools_agent.h
+++ b/content/renderer/devtools/devtools_agent.h
@@ -6,6 +6,7 @@
#define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_
#include <memory>
+#include <set>
#include <string>
#include "base/callback.h"
@@ -53,6 +54,7 @@ class CONTENT_EXPORT DevToolsAgent
blink::WebDevToolsAgent* GetWebAgent();
bool IsAttached();
+ void DetachAllSessions();
private:
friend class DevToolsAgentTest;
@@ -83,7 +85,7 @@ class CONTENT_EXPORT DevToolsAgent
void OnReattach(const std::string& host_id,
int session_id,
const std::string& agent_state);
- void OnDetach();
+ void OnDetach(int session_id);
void OnDispatchOnInspectorBackend(int session_id,
int call_id,
const std::string& method,
@@ -99,9 +101,8 @@ class CONTENT_EXPORT DevToolsAgent
const Manifest& manifest,
const ManifestDebugInfo& debug_info);
- bool is_attached_;
+ std::set<int> session_ids_;
bool is_devtools_client_;
- bool paused_in_mouse_move_;
bool paused_;
RenderFrameImpl* frame_;
base::Callback<void(int, int, const std::string&, const std::string&)>
« no previous file with comments | « content/public/renderer/render_frame.h ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698