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 fa2b630319d0d8f0a7034bd8b85a2ed5fd2b0cb0..d4f0e85dd976eda4e5eaab4318fe43299748b0a1 100644 |
--- a/components/devtools_discovery/devtools_discovery_manager.h |
+++ b/components/devtools_discovery/devtools_discovery_manager.h |
@@ -18,6 +18,8 @@ class DevToolsDiscoveryManager { |
class Provider { |
public: |
virtual ~Provider() {} |
+ |
+ // Caller takes ownership of created descriptors. |
virtual DevToolsTargetDescriptor::List GetDescriptors() = 0; |
}; |
@@ -31,6 +33,7 @@ class DevToolsDiscoveryManager { |
void AddProvider(scoped_ptr<Provider> provider); |
void SetCreateCallback(const CreateCallback& callback); |
+ // Caller takes ownership of created descriptors. |
DevToolsTargetDescriptor::List GetDescriptors(); |
scoped_ptr<DevToolsTargetDescriptor> CreateNew(const GURL& url); |