diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 22:38:04 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 22:38:04 +0000 |
commit | d3f665783018ad6832b224d108640a0be2b1f248 (patch) | |
tree | 6634df109ace1c2df58fccf8ff4d9569ec3a5cd9 /net/socket/socks_client_socket.cc | |
parent | 87fce2b91c8fa1f10ec49e79c719159097a597c5 (diff) | |
download | chromium_src-d3f665783018ad6832b224d108640a0be2b1f248.zip chromium_src-d3f665783018ad6832b224d108640a0be2b1f248.tar.gz chromium_src-d3f665783018ad6832b224d108640a0be2b1f248.tar.bz2 |
Add methods for setting socket buffers to the Socket
class.
Also add a few stats counters for TCP read/write stats.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/199048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/socks_client_socket.cc')
-rw-r--r-- | net/socket/socks_client_socket.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/socket/socks_client_socket.cc b/net/socket/socks_client_socket.cc index 31f362e..ace53d9 100644 --- a/net/socket/socks_client_socket.cc +++ b/net/socket/socks_client_socket.cc @@ -136,6 +136,14 @@ int SOCKSClientSocket::Write(IOBuffer* buf, int buf_len, return transport_->Write(buf, buf_len, callback); } +bool SOCKSClientSocket::SetReceiveBufferSize(int32 size) { + return transport_->SetReceiveBufferSize(size); +} + +bool SOCKSClientSocket::SetSendBufferSize(int32 size) { + return transport_->SetSendBufferSize(size); +} + void SOCKSClientSocket::DoCallback(int result) { DCHECK_NE(ERR_IO_PENDING, result); DCHECK(user_callback_); |