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

Unified Diff: chrome/common/extensions/api/mdns.idl

Issue 1040773002: Limit number of service instances passed to onServiceList listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add new mdns.getMaxServiceInstancesPerEvent() function and update unit tests Created 5 years, 9 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
Index: chrome/common/extensions/api/mdns.idl
diff --git a/chrome/common/extensions/api/mdns.idl b/chrome/common/extensions/api/mdns.idl
index 434d4b8187ff8912241fdae3b3d81a152dfbb31a..88d73dd36a37761a75c38cbbba7d65229dea33d5 100644
--- a/chrome/common/extensions/api/mdns.idl
+++ b/chrome/common/extensions/api/mdns.idl
@@ -23,6 +23,22 @@ namespace mdns {
DOMString[] serviceData;
};
+ callback GetMaxServiceInstancesPerEvent = void (long n);
+
+ /*
+ enum Constants {
+ MaxServiceInstancesPerEvent = 64
+ //static long getMaxServiceInstancesPerEvent ();
+ }
+ */
+ interface Functions {
+ // The maximum number of service instances that will be included in
not at google - send to devlin 2015/04/01 20:25:58 Sorry for the delay with this review, but I'm addi
Red Daly 2015/04/01 22:52:05 That works for me except I'm trying to commit befo
Red Daly 2015/04/02 22:25:21 Thanks for that - updated. Please take another lo
not at google - send to devlin 2015/04/02 22:36:22 AFAIK Caps is the style for web APIs, e.g. see the
Red Daly 2015/04/03 17:58:55 Done.
+ // onServiceList events. If more instances are available, they may be
+ // truncated from the onServiceList event.
+ static void getMaxServiceInstancesPerEvent (
+ GetMaxServiceInstancesPerEvent callback);
+ };
+
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

Powered by Google App Engine
This is Rietveld 408576698