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

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

Issue 2583853004: [chrome.dial] Adds chrome.dial.fetchDeviceDecription API. (Closed)
Patch Set: Rebase and fix typo. Created 3 years, 11 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 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();
« no previous file with comments | « chrome/browser/extensions/api/dial/dial_device_data.cc ('k') | chrome/browser/extensions/api/dial/dial_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698