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

Unified Diff: chrome/common/extensions/api/dial.idl

Issue 22870011: chrome.mdns API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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_extensions.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/dial.idl
diff --git a/chrome/common/extensions/api/dial.idl b/chrome/common/extensions/api/dial.idl
index d16fdfd6919ea8af27f36f817f86f8c4d509e738..d050b2ec49615ae3e6e807b526600d1c7b3152ca 100644
--- a/chrome/common/extensions/api/dial.idl
+++ b/chrome/common/extensions/api/dial.idl
@@ -34,15 +34,50 @@ namespace dial {
DialErrorCode code;
};
+ // The NetworkService interface is used to provide a set of connection
+ // information for an HTTP service endpoint and if available, service events
+ // running on a networked device.
+ //
+ // TODO(justinlin): Add event interfaces?
mark a. foltz 2013/08/19 18:25:26 Not sure if it make sense on an individual service
+ dictionary NetworkService {
+ // A unique identifier for the given user-selected service instance.
+ DOMString id;
+
+ // The name of the user-selected service.
+ DOMString name;
+
+ // The valid service type token value of the user-selected service
+ // (i.e. upnp:..., zeroconf:..., dial:...).
+ DOMString type;
+
+ // The control URL endpoint (including any required port information) of the
+ // user-selected control service that has been added to the entry script
+ // origin's URL whitelist.
+ DOMString url;
+
+ // The configuration information associated with the service depending on
+ // the requested service type.
+ DOMString config;
+
+ // Current date + deviice expiry in UTC time.
+ long expiryTimestamp;
+
+ // Whether the service is online.
+ boolean online;
+ };
+
callback BooleanCallback = void (boolean result);
- interface Functions {
+ callback GetNetworkServicesCallback = void (NetworkService[] deviceInfo);
mark a. foltz 2013/08/19 18:25:26 s/deviceInfo/networkServices/
+ interface Functions {
// Requests that DIAL discovery happen immediately. The request may not be
// honored as discovery may already be happening in the background. The
// callback is invoked with |true| if discovery was initiated or |false|
// otherwise.
static void discoverNow(BooleanCallback callback);
+
+ static void getNetworkServices(GetNetworkServicesCallback callback);
mark a. foltz 2013/08/19 18:25:26 There should be a query parameter to indicate the
};
interface Events {
mark a. foltz 2013/08/19 18:25:26 It makes more sense to add an event here to fire w
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698