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

Side by Side Diff: net/spdy/spdy_proxy_client_socket.h

Issue 227473008: make SetReceiveBufferSize and SetSendBufferSize return net error codes (instead of bools) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Original CL, as was submitted, and previously reverted Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; 79 virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
80 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 80 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
81 81
82 // Socket implementation. 82 // Socket implementation.
83 virtual int Read(IOBuffer* buf, 83 virtual int Read(IOBuffer* buf,
84 int buf_len, 84 int buf_len,
85 const CompletionCallback& callback) OVERRIDE; 85 const CompletionCallback& callback) OVERRIDE;
86 virtual int Write(IOBuffer* buf, 86 virtual int Write(IOBuffer* buf,
87 int buf_len, 87 int buf_len,
88 const CompletionCallback& callback) OVERRIDE; 88 const CompletionCallback& callback) OVERRIDE;
89 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 89 virtual int SetReceiveBufferSize(int32 size) OVERRIDE;
90 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 90 virtual int SetSendBufferSize(int32 size) OVERRIDE;
91 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 91 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
92 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 92 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
93 93
94 // SpdyStream::Delegate implementation. 94 // SpdyStream::Delegate implementation.
95 virtual void OnRequestHeadersSent() OVERRIDE; 95 virtual void OnRequestHeadersSent() OVERRIDE;
96 virtual SpdyResponseHeadersStatus OnResponseHeadersUpdated( 96 virtual SpdyResponseHeadersStatus OnResponseHeadersUpdated(
97 const SpdyHeaderBlock& response_headers) OVERRIDE; 97 const SpdyHeaderBlock& response_headers) OVERRIDE;
98 virtual void OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; 98 virtual void OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE;
99 virtual void OnDataSent() OVERRIDE; 99 virtual void OnDataSent() OVERRIDE;
100 virtual void OnClose(int status) OVERRIDE; 100 virtual void OnClose(int status) OVERRIDE;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; 166 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_;
167 167
168 const BoundNetLog net_log_; 168 const BoundNetLog net_log_;
169 169
170 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); 170 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket);
171 }; 171 };
172 172
173 } // namespace net 173 } // namespace net
174 174
175 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 175 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698