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

Unified Diff: extensions/common/api/sockets_udp.idl

Issue 2378763003: Add ability to reuse address in chrome.sockets.udp
Patch Set: Respond to code reviews, clean up tests Created 4 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
Index: extensions/common/api/sockets_udp.idl
diff --git a/extensions/common/api/sockets_udp.idl b/extensions/common/api/sockets_udp.idl
index 784a31d25d77573f467e6a703e519cad86c674f0..e55b20c4aa914ffbda2994a849ac8833f0ce0678 100644
--- a/extensions/common/api/sockets_udp.idl
+++ b/extensions/common/api/sockets_udp.idl
@@ -26,6 +26,9 @@ namespace sockets.udp {
// The size of the buffer used to receive data. If the buffer is too small
// to receive the UDP packet, data is lost. The default value is 4096.
long? bufferSize;
+
+ // Flag indicating if the address can be bound by multiple sockets.
+ boolean? allowAddressReuse;
};
// Result of <code>create</code> call.
@@ -88,6 +91,9 @@ namespace sockets.udp {
// events.
boolean paused;
+ // Flag indicating whether the address can be bound by multiple sockets.
+ boolean addressReusable;
+
// If the underlying socket is bound, contains its local
// IPv4/6 address.
DOMString? localAddress;
« no previous file with comments | « extensions/browser/api/sockets_udp/sockets_udp_api.cc ('k') | extensions/test/data/sockets_udp/api/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698