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. | |
mark a. foltz
2013/08/30 01:35:52
mDNS/DNS-SD
justinlin
2013/09/03 21:21:56
Done.
| |
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; | |
mark a. foltz
2013/08/30 01:35:52
Need to check that DOMString[] is the right thing
justinlin
2013/09/03 21:21:56
OK, the alternative is an ArrayBuffer, I think, bu
| |
22 }; | |
23 | |
24 interface Events { | |
25 // Event fired to inform clients of the current complete set of responsive | |
mark a. foltz
2013/08/30 01:35:52
s/responsive/known available/
justinlin
2013/09/03 21:21:56
Done.
| |
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 | |
mark a. foltz
2013/08/30 01:35:52
I would remove the sentence about the watcher sinc
justinlin
2013/09/03 21:21:56
Done.
| |
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 |