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
|