| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/base/socket_performance_watcher.h" | 5 #include "net/base/socket_performance_watcher.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 } | 25 } |
| 26 | 26 |
| 27 SocketPerformanceWatcher::~SocketPerformanceWatcher() {} | 27 SocketPerformanceWatcher::~SocketPerformanceWatcher() {} |
| 28 | 28 |
| 29 void SocketPerformanceWatcher::OnUpdatedRTTAvailable( | 29 void SocketPerformanceWatcher::OnUpdatedRTTAvailable( |
| 30 const base::TimeDelta& rtt) const { | 30 const base::TimeDelta& rtt) const { |
| 31 socket_performance_watcher_factory_->OnUpdatedRTTAvailable(protocol_, rtt); | 31 socket_performance_watcher_factory_->OnUpdatedRTTAvailable(protocol_, rtt); |
| 32 } | 32 } |
| 33 | 33 |
| 34 void SocketPerformanceWatcher::OnUpdatedPacketCountAvailable( |
| 35 uint64_t num_packets_lost, |
| 36 uint64_t num_packets_received_in_order, |
| 37 uint64_t num_packets_received_not_in_order) const { |
| 38 socket_performance_watcher_factory_->OnUpdatedPacketCountAvailable( |
| 39 protocol_, num_packets_lost, num_packets_received_in_order, |
| 40 num_packets_received_not_in_order); |
| 41 } |
| 42 |
| 34 } // namespace net | 43 } // namespace net |
| OLD | NEW |