| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 REMOTING_PROTOCOL_FRAME_STATS_H_ | 5 #ifndef REMOTING_PROTOCOL_FRAME_STATS_H_ |
| 6 #define REMOTING_PROTOCOL_FRAME_STATS_H_ | 6 #define REMOTING_PROTOCOL_FRAME_STATS_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // Set to null for frames that were not sent after a fresh input event. | 32 // Set to null for frames that were not sent after a fresh input event. |
| 33 base::TimeTicks latest_event_timestamp; | 33 base::TimeTicks latest_event_timestamp; |
| 34 | 34 |
| 35 // Set to TimeDelta::Max() when unknown. | 35 // Set to TimeDelta::Max() when unknown. |
| 36 base::TimeDelta capture_delay = base::TimeDelta::Max(); | 36 base::TimeDelta capture_delay = base::TimeDelta::Max(); |
| 37 base::TimeDelta encode_delay = base::TimeDelta::Max(); | 37 base::TimeDelta encode_delay = base::TimeDelta::Max(); |
| 38 base::TimeDelta capture_pending_delay = base::TimeDelta::Max(); | 38 base::TimeDelta capture_pending_delay = base::TimeDelta::Max(); |
| 39 base::TimeDelta capture_overhead_delay = base::TimeDelta::Max(); | 39 base::TimeDelta capture_overhead_delay = base::TimeDelta::Max(); |
| 40 base::TimeDelta encode_pending_delay = base::TimeDelta::Max(); | 40 base::TimeDelta encode_pending_delay = base::TimeDelta::Max(); |
| 41 base::TimeDelta send_pending_delay = base::TimeDelta::Max(); | 41 base::TimeDelta send_pending_delay = base::TimeDelta::Max(); |
| 42 base::TimeDelta rtt_estimate = base::TimeDelta::Max(); |
| 43 int bandwidth_estimate_kbps = -1; |
| 42 }; | 44 }; |
| 43 | 45 |
| 44 struct ClientFrameStats { | 46 struct ClientFrameStats { |
| 45 ClientFrameStats(); | 47 ClientFrameStats(); |
| 46 ClientFrameStats(const ClientFrameStats&); | 48 ClientFrameStats(const ClientFrameStats&); |
| 47 ~ClientFrameStats(); | 49 ~ClientFrameStats(); |
| 48 ClientFrameStats& operator=(const ClientFrameStats&); | 50 ClientFrameStats& operator=(const ClientFrameStats&); |
| 49 | 51 |
| 50 base::TimeTicks time_received; | 52 base::TimeTicks time_received; |
| 51 base::TimeTicks time_decoded; | 53 base::TimeTicks time_decoded; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 65 public: | 67 public: |
| 66 virtual void OnVideoFrameStats(const FrameStats& stats) = 0; | 68 virtual void OnVideoFrameStats(const FrameStats& stats) = 0; |
| 67 protected: | 69 protected: |
| 68 virtual ~FrameStatsConsumer() {} | 70 virtual ~FrameStatsConsumer() {} |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 } // namespace protocol | 73 } // namespace protocol |
| 72 } // namespace remoting | 74 } // namespace remoting |
| 73 | 75 |
| 74 #endif // REMOTING_PROTOCOL_FRAME_STATS_H_ | 76 #endif // REMOTING_PROTOCOL_FRAME_STATS_H_ |
| OLD | NEW |