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

Unified Diff: components/devtools_discovery/devtools_discovery_manager.h

Issue 1099243004: [DevTools] Migrate android to devtools_discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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 | « chrome/chrome_browser.gypi ('k') | components/devtools_discovery/devtools_discovery_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/devtools_discovery/devtools_discovery_manager.h
diff --git a/components/devtools_discovery/devtools_discovery_manager.h b/components/devtools_discovery/devtools_discovery_manager.h
index c75f844badf60e511892d94626664dc33bdc778e..fa2b630319d0d8f0a7034bd8b85a2ed5fd2b0cb0 100644
--- a/components/devtools_discovery/devtools_discovery_manager.h
+++ b/components/devtools_discovery/devtools_discovery_manager.h
@@ -21,13 +21,18 @@ class DevToolsDiscoveryManager {
virtual DevToolsTargetDescriptor::List GetDescriptors() = 0;
};
+ using CreateCallback = base::Callback<
+ scoped_ptr<DevToolsTargetDescriptor>(const GURL& url)>;
+
// Returns single instance of this class. The instance is destroyed on the
// browser main loop exit so this method MUST NOT be called after that point.
static DevToolsDiscoveryManager* GetInstance();
void AddProvider(scoped_ptr<Provider> provider);
+ void SetCreateCallback(const CreateCallback& callback);
DevToolsTargetDescriptor::List GetDescriptors();
+ scoped_ptr<DevToolsTargetDescriptor> CreateNew(const GURL& url);
private:
friend struct DefaultSingletonTraits<DevToolsDiscoveryManager>;
@@ -37,6 +42,7 @@ class DevToolsDiscoveryManager {
DevToolsTargetDescriptor::List GetDescriptorsFromProviders();
std::vector<Provider*> providers_;
+ CreateCallback create_callback_;
DISALLOW_COPY_AND_ASSIGN(DevToolsDiscoveryManager);
};
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/devtools_discovery/devtools_discovery_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698