Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Side by Side Diff: chrome/common/extensions/api/mdns.idl

Issue 23437015: Initial chrome.mdns API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable test for WinDbg Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 services over mDNS.
6 // This comprises a subset of the features of the NSD spec:
7 // http://www.w3.org/TR/discovery-api/
8 namespace mdns {
9
10 // Represents a mDNS/DNS-SD service.
11 dictionary MDnsService {
12 // The service name of an mDNS advertised service,
13 // <instance_name>.<service_type>.
14 DOMString serviceName;
15
16 // The host:port pair of an mDNS advertised service.
17 DOMString serviceHostPort;
18
19 // The IP address of an mDNS advertised service.
20 DOMString ipAddress;
21
22 // Metadata for an mDNS advertised service.
23 DOMString[] serviceData;
24 };
25
26 interface Events {
27 // Event fired to inform clients of the current complete set of known
28 // available services. Clients should only need to store the list from the
29 // most recent event. The service types that the extension is interested in
30 // discovering should be declared as an array in the extensions manifest
31 // file with the 'mdns_service_types' key.
32 [supportsFilters=true] static void onServiceList(MDnsService[] services);
33 };
34 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698