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

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 testing:: prefix before MakeMatcher to fix windows build 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 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 f199d2fb90d60fe2572504b7088734386cb37fdc..53e9a3289ed19a737102b81adaf18c81c38866cc 100644
--- a/chrome/common/extensions/api/mdns.idl
+++ b/chrome/common/extensions/api/mdns.idl
@@ -23,6 +23,13 @@ namespace mdns {
DOMString[] serviceData;
};
+ interface Properties {
+ // The maximum number of service instances that will be included in
+ // onServiceList events. If more instances are available, they may be
+ // truncated from the onServiceList event.
+ [value=64] static long MAX_SERVICE_INSTANCES_PER_EVENT();
+ };
+
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