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..8834e3dceed91c09f52fcd4ce3f5b27c64c2ca48 100644 |
--- a/chrome/common/extensions/api/dial.idl |
+++ b/chrome/common/extensions/api/dial.idl |
@@ -21,6 +21,26 @@ namespace dial { |
long? configId; |
}; |
+ // Represents a MDNS/DNS-SD service. |
+ dictionary MDnsService { |
+ // The service name of an mDNS advertised service, |
+ // <instance_name>.<service_type>. |
+ // Set when discoveryType is mdns, unset otherwise. |
scheib
2013/08/20 23:33:50
discoveryType is not defined elsewhere in this idl
justinlin
2013/08/28 16:53:10
service type no longer needed.
|
+ DOMString serviceName; |
+ |
+ // The host:port pair of an mDNS advertised service. |
+ // Set when discoveryType is mdns, unset otherwise. |
+ DOMString serviceHostPort; |
+ |
+ // The IP address of an mDNS advertised service. |
+ // Set when discoveryType is mdns, unset otherwise. |
+ DOMString ipAddress; |
+ |
+ // Metadata for an mDNS advertised service. |
+ // Set when discoveryType is mdns, unset otherwise. |
+ DOMString[] serviceData; |
+ }; |
+ |
enum DialErrorCode { |
no_listeners, |
no_valid_network_interfaces, |
@@ -37,12 +57,14 @@ namespace dial { |
callback BooleanCallback = void (boolean result); |
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); |
+ |
+ // Registers interest in an mDNS/DNS-SD service type. |
+ static void registerNetworkService(DOMString serviceType); |
scheib
2013/08/20 23:33:50
Perhaps registerInterestInNetworkService?
scheib
2013/08/20 23:33:50
Reverence what a serviceType string could be.
justinlin
2013/08/28 16:53:10
Removed this method, we use a manifest field now.
justinlin
2013/08/28 16:53:10
serviceType no longer needed.
|
}; |
interface Events { |
@@ -60,5 +82,8 @@ namespace dial { |
// Event fired to inform clients on errors during device discovery. |
static void onError(DialError error); |
+ |
+ // Invoked with the current set of services. |
+ static void onServiceList(MDnsService[] result); |
}; |
}; |