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

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: More plumbing 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 HANDLE object) { 235 HANDLE object) {
236 DCHECK_EQ(object, core_->write_overlapped_.hEvent); 236 DCHECK_EQ(object, core_->write_overlapped_.hEvent);
237 if (core_->socket_) 237 if (core_->socket_)
238 core_->socket_->DidCompleteWrite(); 238 core_->socket_->DidCompleteWrite();
239 239
240 core_->Release(); 240 core_->Release();
241 } 241 }
242 242
243 //----------------------------------------------------------------------------- 243 //-----------------------------------------------------------------------------
244 244
245 TCPSocketWin::TCPSocketWin(net::NetLog* net_log, 245 TCPSocketWin::TCPSocketWin(
246 const net::NetLog::Source& source) 246 scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher,
247 net::NetLog* net_log,
248 const net::NetLog::Source& source)
247 : socket_(INVALID_SOCKET), 249 : socket_(INVALID_SOCKET),
248 accept_event_(WSA_INVALID_EVENT), 250 accept_event_(WSA_INVALID_EVENT),
249 accept_socket_(NULL), 251 accept_socket_(NULL),
250 accept_address_(NULL), 252 accept_address_(NULL),
251 waiting_connect_(false), 253 waiting_connect_(false),
252 waiting_read_(false), 254 waiting_read_(false),
253 waiting_write_(false), 255 waiting_write_(false),
254 connect_os_error_(0), 256 connect_os_error_(0),
255 logging_multiple_connect_attempts_(false), 257 logging_multiple_connect_attempts_(false),
256 net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_SOCKET)) { 258 net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_SOCKET)) {
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 } 1008 }
1007 1009
1008 bool TCPSocketWin::GetEstimatedRoundTripTime(base::TimeDelta* out_rtt) const { 1010 bool TCPSocketWin::GetEstimatedRoundTripTime(base::TimeDelta* out_rtt) const {
1009 DCHECK(out_rtt); 1011 DCHECK(out_rtt);
1010 // TODO(bmcquade): Consider implementing using 1012 // TODO(bmcquade): Consider implementing using
1011 // GetPerTcpConnectionEStats/GetPerTcp6ConnectionEStats. 1013 // GetPerTcpConnectionEStats/GetPerTcp6ConnectionEStats.
1012 return false; 1014 return false;
1013 } 1015 }
1014 1016
1015 } // namespace net 1017 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698