summaryrefslogtreecommitdiffstats
path: root/chromium/net/socket/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/socket/socket.h')
-rw-r--r--chromium/net/socket/socket.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/net/socket/socket.h b/chromium/net/socket/socket.h
index fccb25873a4..5d9af81f205 100644
--- a/chromium/net/socket/socket.h
+++ b/chromium/net/socket/socket.h
@@ -48,13 +48,13 @@ class NET_EXPORT Socket {
// Set the receive buffer size (in bytes) for the socket.
// Note: changing this value can affect the TCP window size on some platforms.
- // Returns true on success, or false on failure.
- virtual bool SetReceiveBufferSize(int32 size) = 0;
+ // Returns a net error code.
+ virtual int SetReceiveBufferSize(int32 size) = 0;
// Set the send buffer size (in bytes) for the socket.
// Note: changing this value can affect the TCP window size on some platforms.
- // Returns true on success, or false on failure.
- virtual bool SetSendBufferSize(int32 size) = 0;
+ // Returns a net error code.
+ virtual int SetSendBufferSize(int32 size) = 0;
};
} // namespace net