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
3 // found in the LICENSE file.
5 #ifndef NET_BASE_SOCKET_PERFORMANCE_WATCHER_H_
6 #define NET_BASE_SOCKET_PERFORMANCE_WATCHER_H_
8 #include "base/macros.h"
9 #include "net/base/net_export.h"
17 // SocketPerformanceWatcher is the base class for recording and aggregating
19 class NET_EXPORT_PRIVATE SocketPerformanceWatcher
{
21 virtual ~SocketPerformanceWatcher() {}
23 // Called when updated transport layer RTT information is available. This
24 // must be the transport layer RTT from this device to the remote transport
25 // layer endpoint. If the request goes through a HTTP proxy, it should
26 // provide the RTT to the proxy.
27 virtual void OnUpdatedRTTAvailable(const base::TimeDelta
& rtt
) = 0;
30 SocketPerformanceWatcher() {}
33 DISALLOW_COPY_AND_ASSIGN(SocketPerformanceWatcher
);
38 #endif // NET_BASE_SOCKET_PERFORMANCE_WATCHER_H_