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

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

Issue 2344753002: DevTools: return discovered targets asynchronously. (Closed)
Patch Set: for bots Created 4 years, 3 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/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 bb6956279bb1e2f5b27b4af34cbc5786ca3585ac..ed5394b475cb3b2a1e8475972a8777a897fb860f 100644
--- a/content/public/browser/devtools_agent_host.h
+++ b/content/public/browser/devtools_agent_host.h
@@ -98,17 +98,13 @@ class CONTENT_EXPORT DevToolsAgentHost
using List = std::vector<scoped_refptr<DevToolsAgentHost>>;
- using DiscoveryCallback = base::Callback<List()>;
-
- // Registers embedder's custom host providers that are available via
- // DiscoverAllHosts.
- static void AddDiscoveryProvider(const DiscoveryCallback& callback);
-
// Returns all DevToolsAgentHosts content is aware of.
static List GetOrCreateAll();
+ using DiscoveryCallback = base::Callback<void(List)>;
+
// Returns all possible DevToolsAgentHosts embedder is aware of.
- static List DiscoverAllHosts();
+ static void DiscoverAllHosts(const DiscoveryCallback& callback);
// Starts remote debugging.
// Takes ownership over |socket_factory|.
« no previous file with comments | « content/browser/devtools/protocol/browser_handler.cc ('k') | content/public/browser/devtools_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698