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

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

Issue 6930014: Rename ClientSocket to StreamSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.h ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "net/spdy/spdy_proxy_client_socket.h" 5 #include "net/spdy/spdy_proxy_client_socket.h"
6 6
7 #include <algorithm> // min 7 #include <algorithm> // min
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 if (write_bytes_outstanding_ > 0) { 221 if (write_bytes_outstanding_ > 0) {
222 write_callback_ = callback; 222 write_callback_ = callback;
223 write_buffer_len_ = buf_len; 223 write_buffer_len_ = buf_len;
224 return ERR_IO_PENDING; 224 return ERR_IO_PENDING;
225 } else { 225 } else {
226 return buf_len; 226 return buf_len;
227 } 227 }
228 } 228 }
229 229
230 bool SpdyProxyClientSocket::SetReceiveBufferSize(int32 size) { 230 bool SpdyProxyClientSocket::SetReceiveBufferSize(int32 size) {
231 // Since this ClientSocket sits on top of a shared SpdySession, it 231 // Since this StreamSocket sits on top of a shared SpdySession, it
232 // is not safe for callers to set change this underlying socket. 232 // is not safe for callers to set change this underlying socket.
233 return false; 233 return false;
234 } 234 }
235 235
236 bool SpdyProxyClientSocket::SetSendBufferSize(int32 size) { 236 bool SpdyProxyClientSocket::SetSendBufferSize(int32 size) {
237 // Since this ClientSocket sits on top of a shared SpdySession, it 237 // Since this StreamSocket sits on top of a shared SpdySession, it
238 // is not safe for callers to set change this underlying socket. 238 // is not safe for callers to set change this underlying socket.
239 return false; 239 return false;
240 } 240 }
241 241
242 int SpdyProxyClientSocket::GetPeerAddress(AddressList* address) const { 242 int SpdyProxyClientSocket::GetPeerAddress(AddressList* address) const {
243 if (!IsConnected()) 243 if (!IsConnected())
244 return ERR_SOCKET_NOT_CONNECTED; 244 return ERR_SOCKET_NOT_CONNECTED;
245 return spdy_stream_->GetPeerAddress(address); 245 return spdy_stream_->GetPeerAddress(address);
246 } 246 }
247 247
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 OnDataReceived(NULL, 0); 501 OnDataReceived(NULL, 0);
502 } 502 }
503 if (write_callback) 503 if (write_callback)
504 write_callback->Run(ERR_CONNECTION_CLOSED); 504 write_callback->Run(ERR_CONNECTION_CLOSED);
505 } 505 }
506 506
507 void SpdyProxyClientSocket::set_chunk_callback(ChunkCallback* /*callback*/) { 507 void SpdyProxyClientSocket::set_chunk_callback(ChunkCallback* /*callback*/) {
508 } 508 }
509 509
510 } // namespace net 510 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.h ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698