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

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

Issue 1005903005: Cap chrome.mdns.onServiceList listeners per extension at 10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto HEAD and consolidate changes into one commit Created 5 years, 8 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
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 namespace mdns {
9 9
10 // Represents a mDNS/DNS-SD service. 10 // Represents a mDNS/DNS-SD service.
(...skipping 12 matching lines...) Expand all
23 DOMString[] serviceData; 23 DOMString[] serviceData;
24 }; 24 };
25 25
26 interface Events { 26 interface Events {
27 // Event fired to inform clients of the current complete set of known 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 28 // available services. Clients should only need to store the list from the
29 // most recent event. The service type that the extension is interested in 29 // most recent event. The service type that the extension is interested in
30 // discovering should be specified as the event filter with the 30 // discovering should be specified as the event filter with the
31 // 'serviceType' key. Not specifying an event filter will not start any 31 // 'serviceType' key. Not specifying an event filter will not start any
32 // discovery listeners. 32 // discovery listeners.
33 [supportsFilters=true] static void onServiceList(MDnsService[] services); 33 [supportsFilters=true, maxListeners=10] static void onServiceList(MDnsServic e[] services);
34 }; 34 };
35 }; 35 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698