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

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

Issue 2408133004: [DevTools] Implement Target.setDiscoverTargets method. (Closed)
Patch Set: force creation Created 4 years, 2 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
Index: content/browser/devtools/devtools_agent_host_impl.h
diff --git a/content/browser/devtools/devtools_agent_host_impl.h b/content/browser/devtools/devtools_agent_host_impl.h
index e5d309482d2ac59ac3829931a0a714a1d61dd375..cbc3bc2cfca5f627d3adc73e83f85ae45346d57a 100644
--- a/content/browser/devtools/devtools_agent_host_impl.h
+++ b/content/browser/devtools/devtools_agent_host_impl.h
@@ -64,9 +64,12 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost,
DevToolsAgentHostImpl(const std::string& id);
~DevToolsAgentHostImpl() override;
+ static bool ShouldForceCreation();
+
virtual bool DispatchProtocolMessage(const std::string& message) = 0;
virtual void InspectElement(int x, int y);
+ void NotifyCreated();
void HostClosed();
void SendMessageToClient(int session_id, const std::string& message);
devtools::DevToolsIOContext* GetIOContext() { return &io_context_; }
@@ -79,12 +82,14 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost,
void InnerDetach();
void NotifyAttached();
void NotifyDetached();
+ void NotifyDestroyed();
const std::string id_;
int session_id_;
DevToolsAgentHostClient* client_;
devtools::DevToolsIOContext io_context_;
static int s_attached_count_;
+ static int s_force_creation_count_;
};
class DevToolsMessageChunkProcessor {

Powered by Google App Engine
This is Rietveld 408576698