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

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

Issue 1376473003: Notify NQE of TCP RTT values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed rsleevi comments Created 4 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/tcp_socket.h" 5 #include "net/socket/tcp_socket.h"
6 #include "net/socket/tcp_socket_win.h" 6 #include "net/socket/tcp_socket_win.h"
7 7
8 #include <errno.h> 8 #include <errno.h>
9 #include <mstcpip.h> 9 #include <mstcpip.h>
10 10
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 HANDLE object) { 263 HANDLE object) {
264 DCHECK_EQ(object, core_->write_overlapped_.hEvent); 264 DCHECK_EQ(object, core_->write_overlapped_.hEvent);
265 if (core_->socket_) 265 if (core_->socket_)
266 core_->socket_->DidCompleteWrite(); 266 core_->socket_->DidCompleteWrite();
267 267
268 core_->Release(); 268 core_->Release();
269 } 269 }
270 270
271 //----------------------------------------------------------------------------- 271 //-----------------------------------------------------------------------------
272 272
273 TCPSocketWin::TCPSocketWin(net::NetLog* net_log, 273 TCPSocketWin::TCPSocketWin(
274 const net::NetLog::Source& source) 274 scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher,
275 net::NetLog* net_log,
276 const net::NetLog::Source& source)
275 : socket_(INVALID_SOCKET), 277 : socket_(INVALID_SOCKET),
276 accept_event_(WSA_INVALID_EVENT), 278 accept_event_(WSA_INVALID_EVENT),
277 accept_socket_(NULL), 279 accept_socket_(NULL),
278 accept_address_(NULL), 280 accept_address_(NULL),
279 waiting_connect_(false), 281 waiting_connect_(false),
280 waiting_read_(false), 282 waiting_read_(false),
281 waiting_write_(false), 283 waiting_write_(false),
282 connect_os_error_(0), 284 connect_os_error_(0),
283 logging_multiple_connect_attempts_(false), 285 logging_multiple_connect_attempts_(false),
284 net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_SOCKET)) { 286 net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_SOCKET)) {
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 } 1036 }
1035 1037
1036 bool TCPSocketWin::GetEstimatedRoundTripTime(base::TimeDelta* out_rtt) const { 1038 bool TCPSocketWin::GetEstimatedRoundTripTime(base::TimeDelta* out_rtt) const {
1037 DCHECK(out_rtt); 1039 DCHECK(out_rtt);
1038 // TODO(bmcquade): Consider implementing using 1040 // TODO(bmcquade): Consider implementing using
1039 // GetPerTcpConnectionEStats/GetPerTcp6ConnectionEStats. 1041 // GetPerTcpConnectionEStats/GetPerTcp6ConnectionEStats.
1040 return false; 1042 return false;
1041 } 1043 }
1042 1044
1043 } // namespace net 1045 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698