| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Use the <code>chrome.mdns</code> API to discover services over mDNS. | 5 // Use the <code>chrome.mdns</code> API to discover services over mDNS. |
| 6 // This comprises a subset of the features of the NSD spec: | 6 // This comprises a subset of the features of the NSD spec: |
| 7 // http://www.w3.org/TR/discovery-api/ | 7 // http://www.w3.org/TR/discovery-api/ |
| 8 namespace mdns { | 8 [use_movable_types=true] namespace mdns { |
| 9 | 9 |
| 10 // Represents a mDNS/DNS-SD service. | 10 // Represents a mDNS/DNS-SD service. |
| 11 dictionary MDnsService { | 11 dictionary MDnsService { |
| 12 // The service name of an mDNS advertised service, | 12 // The service name of an mDNS advertised service, |
| 13 // <instance_name>.<service_type>. | 13 // <instance_name>.<service_type>. |
| 14 DOMString serviceName; | 14 DOMString serviceName; |
| 15 | 15 |
| 16 // The host:port pair of an mDNS advertised service. | 16 // The host:port pair of an mDNS advertised service. |
| 17 DOMString serviceHostPort; | 17 DOMString serviceHostPort; |
| 18 | 18 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 44 // Event fired to inform clients of the current complete set of known | 44 // Event fired to inform clients of the current complete set of known |
| 45 // available services. Clients should only need to store the list from the | 45 // available services. Clients should only need to store the list from the |
| 46 // most recent event. The service type that the extension is interested in | 46 // most recent event. The service type that the extension is interested in |
| 47 // discovering should be specified as the event filter with the | 47 // discovering should be specified as the event filter with the |
| 48 // 'serviceType' key. Not specifying an event filter will not start any | 48 // 'serviceType' key. Not specifying an event filter will not start any |
| 49 // discovery listeners. | 49 // discovery listeners. |
| 50 [supportsFilters=true, maxListeners=10] static void onServiceList( | 50 [supportsFilters=true, maxListeners=10] static void onServiceList( |
| 51 MDnsService[] services); | 51 MDnsService[] services); |
| 52 }; | 52 }; |
| 53 }; | 53 }; |
| OLD | NEW |