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

Side by Side Diff: trunk/src/net/http/http_proxy_client_socket.h

Issue 227083002: Revert 261966 "make SetReceiveBufferSize and SetSendBufferSize r..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_
6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; 75 virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
76 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 76 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
77 77
78 // Socket implementation. 78 // Socket implementation.
79 virtual int Read(IOBuffer* buf, 79 virtual int Read(IOBuffer* buf,
80 int buf_len, 80 int buf_len,
81 const CompletionCallback& callback) OVERRIDE; 81 const CompletionCallback& callback) OVERRIDE;
82 virtual int Write(IOBuffer* buf, 82 virtual int Write(IOBuffer* buf,
83 int buf_len, 83 int buf_len,
84 const CompletionCallback& callback) OVERRIDE; 84 const CompletionCallback& callback) OVERRIDE;
85 virtual int SetReceiveBufferSize(int32 size) OVERRIDE; 85 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
86 virtual int SetSendBufferSize(int32 size) OVERRIDE; 86 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
87 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 87 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
88 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 88 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
89 89
90 private: 90 private:
91 enum State { 91 enum State {
92 STATE_NONE, 92 STATE_NONE,
93 STATE_GENERATE_AUTH_TOKEN, 93 STATE_GENERATE_AUTH_TOKEN,
94 STATE_GENERATE_AUTH_TOKEN_COMPLETE, 94 STATE_GENERATE_AUTH_TOKEN_COMPLETE,
95 STATE_SEND_REQUEST, 95 STATE_SEND_REQUEST,
96 STATE_SEND_REQUEST_COMPLETE, 96 STATE_SEND_REQUEST_COMPLETE,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 LoadTimingInfo redirect_load_timing_info_; 164 LoadTimingInfo redirect_load_timing_info_;
165 165
166 const BoundNetLog net_log_; 166 const BoundNetLog net_log_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); 168 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket);
169 }; 169 };
170 170
171 } // namespace net 171 } // namespace net
172 172
173 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ 173 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « trunk/src/net/dns/mock_mdns_socket_factory.h ('k') | trunk/src/net/http/http_proxy_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698