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_FACTORY_H_ | 5 #ifndef NET_BASE_SOCKET_PERFORMANCE_WATCHER_FACTORY_H_ |
6 #define NET_BASE_SOCKET_PERFORMANCE_WATCHER_FACTORY_H_ | 6 #define NET_BASE_SOCKET_PERFORMANCE_WATCHER_FACTORY_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
(...skipping 24 matching lines...) Expand all Loading... | |
35 const Protocol protocol) = 0; | 35 const Protocol protocol) = 0; |
36 | 36 |
37 // Called when updated transport layer RTT information is available from one | 37 // Called when updated transport layer RTT information is available from one |
38 // of the watchers created by |this|. |protocol| is the protocol that was used | 38 // of the watchers created by |this|. |protocol| is the protocol that was used |
39 // by the watcher. |rtt| must be the transport layer RTT from this device to | 39 // by the watcher. |rtt| must be the transport layer RTT from this device to |
40 // the remote transport layer endpoint. These methods are called immediately | 40 // the remote transport layer endpoint. These methods are called immediately |
41 // after the observation is made, hence no timestamp. | 41 // after the observation is made, hence no timestamp. |
42 virtual void OnUpdatedRTTAvailable(const Protocol protocol, | 42 virtual void OnUpdatedRTTAvailable(const Protocol protocol, |
43 const base::TimeDelta& rtt) = 0; | 43 const base::TimeDelta& rtt) = 0; |
44 | 44 |
45 // Called when one of the watchers created by |this| is being reused for | |
46 // another transport layer connection. | |
47 virtual void WatcherReset() = 0; | |
Ryan Sleevi
2016/02/25 22:48:46
1) Who guarantees that it's called by this? Same w
tbansal1
2016/02/26 23:43:34
Done.
| |
48 | |
45 protected: | 49 protected: |
46 SocketPerformanceWatcherFactory() {} | 50 SocketPerformanceWatcherFactory() {} |
47 | 51 |
48 private: | 52 private: |
49 DISALLOW_COPY_AND_ASSIGN(SocketPerformanceWatcherFactory); | 53 DISALLOW_COPY_AND_ASSIGN(SocketPerformanceWatcherFactory); |
50 }; | 54 }; |
51 | 55 |
52 } // namespace net | 56 } // namespace net |
53 | 57 |
54 #endif // NET_BASE_SOCKET_PERFORMANCE_WATCHER_FACTORY_H_ | 58 #endif // NET_BASE_SOCKET_PERFORMANCE_WATCHER_FACTORY_H_ |
OLD | NEW |