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

Unified Diff: chrome/common/extensions/api/experimental.socket.idl

Issue 10387021: Add bufferSize argument of socket.read() and socket.recvFrom() (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update Created 8 years, 7 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
« no previous file with comments | « chrome/browser/extensions/api/socket/socket_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/experimental.socket.idl
diff --git a/chrome/common/extensions/api/experimental.socket.idl b/chrome/common/extensions/api/experimental.socket.idl
index 0e77600d08beac26b03f6a32a175d555acc63d4d..86fe46aca2eddfcb683713a928d689123640845e 100644
--- a/chrome/common/extensions/api/experimental.socket.idl
+++ b/chrome/common/extensions/api/experimental.socket.idl
@@ -101,9 +101,11 @@
// Reads data from the given socket.
// |socketId| : The socketId.
+ // |bufferSize| : The read buffer size.
// |callback| : Delivers data that was available to be read without
// blocking.
static void read(long socketId,
+ optional long bufferSize,
ReadCallback callback);
// Writes data on the given socket.
@@ -121,9 +123,11 @@
// Reads data from the given socket.
// |socketId| : The socketId.
+ // |bufferSize| : The receive buffer size.
// |callback| : Delivers data that was available to be read without
// blocking.
static void recvFrom(long socketId,
+ optional long bufferSize,
RecvFromCallback callback);
// Writes data on the given socket.
« no previous file with comments | « chrome/browser/extensions/api/socket/socket_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698