From 28b96d1cb6f5c1f89abc91dd6b1542265ac9fa6a Mon Sep 17 00:00:00 2001 From: "jar@chromium.org" Date: Wed, 9 Apr 2014 12:21:15 +0000 Subject: make SetReceiveBufferSize and SetSendBufferSize return net error codes (instead of bools) Previously committed as https://src.chromium.org/viewvc/chrome?view=rev&revision=261966 but then reverted when it broke the Mac 10.6 build. TBR=sergeyu,yzshen,yurys,zea R=wtc BUG=355222 Review URL: https://codereview.chromium.org/227473008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262652 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/protocol/fake_session.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'remoting/protocol/fake_session.h') diff --git a/remoting/protocol/fake_session.h b/remoting/protocol/fake_session.h index 471b336..01f79c7 100644 --- a/remoting/protocol/fake_session.h +++ b/remoting/protocol/fake_session.h @@ -58,8 +58,8 @@ class FakeSocket : public net::StreamSocket { virtual int Write(net::IOBuffer* buf, int buf_len, const net::CompletionCallback& callback) OVERRIDE; - virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; - virtual bool SetSendBufferSize(int32 size) OVERRIDE; + virtual int SetReceiveBufferSize(int32 size) OVERRIDE; + virtual int SetSendBufferSize(int32 size) OVERRIDE; // net::StreamSocket interface. virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; @@ -127,8 +127,8 @@ class FakeUdpSocket : public net::Socket { virtual int Write(net::IOBuffer* buf, int buf_len, const net::CompletionCallback& callback) OVERRIDE; - virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; - virtual bool SetSendBufferSize(int32 size) OVERRIDE; + virtual int SetReceiveBufferSize(int32 size) OVERRIDE; + virtual int SetSendBufferSize(int32 size) OVERRIDE; private: bool read_pending_; -- cgit v1.1