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

Unified Diff: net/socket/socket.h

Issue 199048: Add methods for setting socket buffers to the Socket (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « net/socket/client_socket_pool_base_unittest.cc ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/socket.h
===================================================================
--- net/socket/socket.h (revision 25133)
+++ net/socket/socket.h (working copy)
@@ -37,6 +37,16 @@
// buffer that is written to the socket.
virtual int Write(IOBuffer* buf, int buf_len,
CompletionCallback* callback) = 0;
+
+ // Set the receive buffer size (in bytes) for the socket.
+ // Note: changing this value can effect the TCP window size on some platforms.
+ // Returns true on success, or false on failure.
+ virtual bool SetReceiveBufferSize(int32 size) = 0;
+
+ // Set the send buffer size (in bytes) for the socket.
+ // Note: changing this value can effect the TCP window size on some platforms.
+ // Returns true on success, or false on failure.
+ virtual bool SetSendBufferSize(int32 size) = 0;
};
} // namespace net
« no previous file with comments | « net/socket/client_socket_pool_base_unittest.cc ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698