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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/mdns.idl
diff --git a/chrome/common/extensions/api/mdns.idl b/chrome/common/extensions/api/mdns.idl
new file mode 100644
index 0000000000000000000000000000000000000000..f7180f4972a13102f9e2e2692a0013be3c038b36
--- /dev/null
+++ b/chrome/common/extensions/api/mdns.idl
@@ -0,0 +1,34 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Use the <code>chrome.mdns</code> API to discover services over mDNS.
+// This comprises a subset of the features of the NSD spec:
+// http://www.w3.org/TR/discovery-api/
+namespace mdns {
+
+ // Represents a mDNS/DNS-SD service.
+ dictionary MDnsService {
+ // The service name of an mDNS advertised service,
+ // <instance_name>.<service_type>.
+ DOMString serviceName;
+
+ // The host:port pair of an mDNS advertised service.
+ DOMString serviceHostPort;
+
+ // The IP address of an mDNS advertised service.
+ DOMString ipAddress;
+
+ // Metadata for an mDNS advertised service.
+ DOMString[] serviceData;
+ };
+
+ interface Events {
+ // Event fired to inform clients of the current complete set of known
+ // available services. Clients should only need to store the list from the
+ // most recent event. The service types that the extension is interested in
+ // discovering should be declared as an array in the extensions manifest
+ // file with the 'mdns_service_types' key.
+ [supportsFilters=true] static void onServiceList(MDnsService[] services);
+ };
+};
« 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