OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Use the <code>chrome.mdns</code> API to discover local services over mDNS. |
| 6 namespace mdns { |
| 7 |
| 8 // Represents a MDNS/DNS-SD service. |
| 9 dictionary MDnsService { |
| 10 // The service name of an mDNS advertised service, |
| 11 // <instance_name>.<service_type>. |
| 12 DOMString serviceName; |
| 13 |
| 14 // The host:port pair of an mDNS advertised service. |
| 15 DOMString serviceHostPort; |
| 16 |
| 17 // The IP address of an mDNS advertised service. |
| 18 DOMString ipAddress; |
| 19 |
| 20 // Metadata for an mDNS advertised service. |
| 21 DOMString[] serviceData; |
| 22 }; |
| 23 |
| 24 interface Events { |
| 25 // Event fired to inform clients of the current complete set of responsive |
| 26 // services. Clients should only need to store the list from the most recent |
| 27 // event. The MDNS watcher is started when the first listener is added. The |
| 28 // service types that the extension is interested in discovering should be |
| 29 // declared as an array in the extensions manifest file with the |
| 30 // 'mdns_service_types' key. |
| 31 static void onServiceList(MDnsService[] services); |
| 32 }; |
| 33 }; |
OLD | NEW |