Index: chrome/browser/extensions/api/dial/dial_registry.h |
diff --git a/chrome/browser/extensions/api/dial/dial_registry.h b/chrome/browser/extensions/api/dial/dial_registry.h |
index aa03a1a675ea8f9214965d179af29ba185feefd8..e43d207bff830aa3fbecae52d6ea9a674cc9cc01 100644 |
--- a/chrome/browser/extensions/api/dial/dial_registry.h |
+++ b/chrome/browser/extensions/api/dial/dial_registry.h |
@@ -74,6 +74,15 @@ class DialRegistry : public DialService::Observer, |
// already active. |
bool DiscoverNow(); |
+ // Returns the URL of the device description for the device identified by |
+ // |label|, or an empty GURL if no such device exists. |
+ GURL GetDeviceDescriptionURL(const std::string& label) const; |
+ |
+ // Adds a device directly to the registry as if it was discovered. For tests |
+ // only. Note that if discovery is actually started, this device will be |
+ // removed by PruneExpiredDevices(). |
+ void AddDeviceForTest(const DialDeviceData& device_data); |
+ |
protected: |
// Returns a new instance of the DIAL service. Overridden by tests. |
virtual std::unique_ptr<DialService> CreateDialService(); |