| OLD | NEW |
| 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 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1028 // consume all the received data without resetting the event object. | 1028 // consume all the received data without resetting the event object. |
| 1029 core_->WatchForRead(); | 1029 core_->WatchForRead(); |
| 1030 return; | 1030 return; |
| 1031 } | 1031 } |
| 1032 | 1032 |
| 1033 waiting_read_ = false; | 1033 waiting_read_ = false; |
| 1034 core_->read_iobuffer_ = NULL; | 1034 core_->read_iobuffer_ = NULL; |
| 1035 core_->read_buffer_length_ = 0; | 1035 core_->read_buffer_length_ = 0; |
| 1036 | 1036 |
| 1037 DCHECK_NE(rv, ERR_IO_PENDING); | 1037 DCHECK_NE(rv, ERR_IO_PENDING); |
| 1038 // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. |
| 1039 tracked_objects::ScopedProfile tracking_profile( |
| 1040 FROM_HERE_WITH_EXPLICIT_FUNCTION("TCPSocketWin::DidSignalRead")); |
| 1038 base::ResetAndReturn(&read_callback_).Run(rv); | 1041 base::ResetAndReturn(&read_callback_).Run(rv); |
| 1039 } | 1042 } |
| 1040 | 1043 |
| 1041 } // namespace net | 1044 } // namespace net |
| OLD | NEW |