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

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

Issue 1463333003: Increase the maximum MDNS device limit from 64 to 2048. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « chrome/browser/extensions/api/mdns/mdns_api_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
30 // Immediately issues a multicast DNS query for all service types. 30 // Immediately issues a multicast DNS query for all service types.
31 // |callback| is invoked immediately. At a later time, queries will be 31 // |callback| is invoked immediately. At a later time, queries will be
32 // sent, and any service events will be fired. 32 // sent, and any service events will be fired.
33 static void forceDiscovery(VoidCallback callback); 33 static void forceDiscovery(VoidCallback callback);
34 }; 34 };
35 35
36 interface Properties { 36 interface Properties {
37 // The maximum number of service instances that will be included in 37 // The maximum number of service instances that will be included in
38 // onServiceList events. If more instances are available, they may be 38 // onServiceList events. If more instances are available, they may be
39 // truncated from the onServiceList event. 39 // truncated from the onServiceList event.
40 [value=64] static long MAX_SERVICE_INSTANCES_PER_EVENT(); 40 [value=2048] static long MAX_SERVICE_INSTANCES_PER_EVENT();
41 }; 41 };
42 42
43 interface Events { 43 interface Events {
44 // Event fired to inform clients of the current complete set of known 44 // Event fired to inform clients of the current complete set of known
45 // available services. Clients should only need to store the list from the 45 // available services. Clients should only need to store the list from the
46 // most recent event. The service type that the extension is interested in 46 // most recent event. The service type that the extension is interested in
47 // discovering should be specified as the event filter with the 47 // discovering should be specified as the event filter with the
48 // 'serviceType' key. Not specifying an event filter will not start any 48 // 'serviceType' key. Not specifying an event filter will not start any
49 // discovery listeners. 49 // discovery listeners.
50 [supportsFilters=true, maxListeners=10] static void onServiceList( 50 [supportsFilters=true, maxListeners=10] static void onServiceList(
51 MDnsService[] services); 51 MDnsService[] services);
52 }; 52 };
53 }; 53 };
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/mdns/mdns_api_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698