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

Side by Side Diff: net/socket/buffered_write_stream_socket.cc

Issue 12886034: Remove experimental code to pick the "warmest" socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync, fix conflict Created 7 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
« no previous file with comments | « net/socket/buffered_write_stream_socket.h ('k') | net/socket/client_socket_pool_base.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) 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 #include "net/socket/buffered_write_stream_socket.h" 5 #include "net/socket/buffered_write_stream_socket.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 bool BufferedWriteStreamSocket::WasEverUsed() const { 106 bool BufferedWriteStreamSocket::WasEverUsed() const {
107 return wrapped_socket_->WasEverUsed(); 107 return wrapped_socket_->WasEverUsed();
108 } 108 }
109 109
110 bool BufferedWriteStreamSocket::UsingTCPFastOpen() const { 110 bool BufferedWriteStreamSocket::UsingTCPFastOpen() const {
111 return wrapped_socket_->UsingTCPFastOpen(); 111 return wrapped_socket_->UsingTCPFastOpen();
112 } 112 }
113 113
114 int64 BufferedWriteStreamSocket::NumBytesRead() const {
115 return wrapped_socket_->NumBytesRead();
116 }
117
118 base::TimeDelta BufferedWriteStreamSocket::GetConnectTimeMicros() const {
119 return wrapped_socket_->GetConnectTimeMicros();
120 }
121
122 bool BufferedWriteStreamSocket::WasNpnNegotiated() const { 114 bool BufferedWriteStreamSocket::WasNpnNegotiated() const {
123 return wrapped_socket_->WasNpnNegotiated(); 115 return wrapped_socket_->WasNpnNegotiated();
124 } 116 }
125 117
126 NextProto BufferedWriteStreamSocket::GetNegotiatedProtocol() const { 118 NextProto BufferedWriteStreamSocket::GetNegotiatedProtocol() const {
127 return wrapped_socket_->GetNegotiatedProtocol(); 119 return wrapped_socket_->GetNegotiatedProtocol();
128 } 120 }
129 121
130 bool BufferedWriteStreamSocket::GetSSLInfo(SSLInfo* ssl_info) { 122 bool BufferedWriteStreamSocket::GetSSLInfo(SSLInfo* ssl_info) {
131 return wrapped_socket_->GetSSLInfo(ssl_info); 123 return wrapped_socket_->GetSSLInfo(ssl_info);
(...skipping 27 matching lines...) Expand all
159 io_buffer_->set_offset(io_buffer_->offset() + result); 151 io_buffer_->set_offset(io_buffer_->offset() + result);
160 if (io_buffer_->RemainingCapacity()) { 152 if (io_buffer_->RemainingCapacity()) {
161 DoDelayedWrite(); 153 DoDelayedWrite();
162 } else { 154 } else {
163 io_buffer_->SetCapacity(0); 155 io_buffer_->SetCapacity(0);
164 } 156 }
165 } 157 }
166 } 158 }
167 159
168 } // namespace net 160 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/buffered_write_stream_socket.h ('k') | net/socket/client_socket_pool_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698