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

Unified Diff: content/public/browser/devtools_agent_host.h

Issue 2419943002: [DevTools] Migrate from AgentStateCallbacks to DevToolsAgentHostObserver. (Closed)
Patch Set: mac 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
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/devtools_agent_host_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/devtools_agent_host.h
diff --git a/content/public/browser/devtools_agent_host.h b/content/public/browser/devtools_agent_host.h
index 3f096185ba991524005d5e212e52c9a32b998da4..04c0ca5eea5746d76524bd84aea35df555683c4d 100644
--- a/content/public/browser/devtools_agent_host.h
+++ b/content/public/browser/devtools_agent_host.h
@@ -15,6 +15,7 @@
#include "base/time/time.h"
#include "content/common/content_export.h"
#include "content/public/browser/devtools_agent_host_client.h"
+#include "content/public/browser/devtools_agent_host_observer.h"
#include "url/gurl.h"
namespace base {
@@ -124,6 +125,10 @@ class CONTENT_EXPORT DevToolsAgentHost
// Stops remote debugging.
static void StopRemoteDebuggingServer();
+ // Observer is notified about changes in DevToolsAgentHosts.
+ static void AddObserver(DevToolsAgentHostObserver*);
+ static void RemoveObserver(DevToolsAgentHostObserver*);
+
// Attaches |client| to this agent host to start debugging.
// Returns true iff attach succeeded.
virtual bool AttachClient(DevToolsAgentHostClient* client) = 0;
@@ -201,12 +206,6 @@ class CONTENT_EXPORT DevToolsAgentHost
// Terminates all debugging sessions and detaches all clients.
static void DetachAllClients();
- typedef base::Callback<void(DevToolsAgentHost*, bool attached)>
- AgentStateCallback;
-
- static void AddAgentStateCallback(const AgentStateCallback& callback);
- static void RemoveAgentStateCallback(const AgentStateCallback& callback);
-
protected:
friend class base::RefCounted<DevToolsAgentHost>;
virtual ~DevToolsAgentHost() {}
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/devtools_agent_host_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698