| 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 #ifndef NET_BASE_SOCKET_PERFORMANCE_WATCHER_H_ | 5 #ifndef NET_SOCKET_SOCKET_PERFORMANCE_WATCHER_H_ |
| 6 #define NET_BASE_SOCKET_PERFORMANCE_WATCHER_H_ | 6 #define NET_SOCKET_SOCKET_PERFORMANCE_WATCHER_H_ |
| 7 | 7 |
| 8 #include "net/base/net_export.h" | 8 #include "net/base/net_export.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 class TimeDelta; | 11 class TimeDelta; |
| 12 } // namespace base | 12 } // namespace base |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 // SocketPerformanceWatcher is the base class for recording and aggregating | 16 // SocketPerformanceWatcher is the base class for recording and aggregating |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 virtual void OnUpdatedRTTAvailable(const base::TimeDelta& rtt) = 0; | 33 virtual void OnUpdatedRTTAvailable(const base::TimeDelta& rtt) = 0; |
| 34 | 34 |
| 35 // Notifies that |this| watcher will be reused to watch a socket that belongs | 35 // Notifies that |this| watcher will be reused to watch a socket that belongs |
| 36 // to a different transport layer connection. Note: The new connection shares | 36 // to a different transport layer connection. Note: The new connection shares |
| 37 // the same protocol as the previously watched socket. | 37 // the same protocol as the previously watched socket. |
| 38 virtual void OnConnectionChanged() = 0; | 38 virtual void OnConnectionChanged() = 0; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace net | 41 } // namespace net |
| 42 | 42 |
| 43 #endif // NET_BASE_SOCKET_PERFORMANCE_WATCHER_H_ | 43 #endif // NET_SOCKET_SOCKET_PERFORMANCE_WATCHER_H_ |
| OLD | NEW |