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

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

Issue 1215543003: Add UMA for the kernel's TCP RTT estimate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make method name more descriptive. Created 5 years, 5 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 <mstcpip.h> 8 #include <mstcpip.h>
9 9
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 } 1036 }
1037 1037
1038 waiting_read_ = false; 1038 waiting_read_ = false;
1039 core_->read_iobuffer_ = NULL; 1039 core_->read_iobuffer_ = NULL;
1040 core_->read_buffer_length_ = 0; 1040 core_->read_buffer_length_ = 0;
1041 1041
1042 DCHECK_NE(rv, ERR_IO_PENDING); 1042 DCHECK_NE(rv, ERR_IO_PENDING);
1043 base::ResetAndReturn(&read_callback_).Run(rv); 1043 base::ResetAndReturn(&read_callback_).Run(rv);
1044 } 1044 }
1045 1045
1046 bool TCPSocketWin::GetEstimatedRoundTripTime(base::TimeDelta* out_rtt) {
1047 DCHECK(out_rtt);
1048 // Not implemented. Consider implementing using
1049 // GetPerTcpConnectionEStats/GetPerTcp6ConnectionEStats.
1050 return false;
1051 }
1052
1046 } // namespace net 1053 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698