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

Unified Diff: chrome/browser/extensions/api/dial/dial_registry.h

Issue 2583853004: [chrome.dial] Adds chrome.dial.fetchDeviceDecription API. (Closed)
Patch Set: Respond to imcheng@ comments Created 3 years, 12 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: 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 784aa78aaad577c3e5a8c5ef048b63ed0a389de3..1616dac709e4d78346a4e9340db1cdbeb9a930b0 100644
--- a/chrome/browser/extensions/api/dial/dial_registry.h
+++ b/chrome/browser/extensions/api/dial/dial_registry.h
@@ -72,6 +72,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();

Powered by Google App Engine
This is Rietveld 408576698