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 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h" |
9 | 10 |
10 namespace remoting { | 11 namespace remoting { |
11 | 12 |
12 class VideoPacket; | 13 class VideoPacket; |
13 class FrameStatsMessage; | 14 class FrameStatsMessage; |
14 | 15 |
15 namespace protocol { | 16 namespace protocol { |
16 | 17 |
17 struct HostFrameStats { | 18 struct HostFrameStats { |
18 HostFrameStats(); | 19 HostFrameStats(); |
(...skipping 15 matching lines...) Expand all Loading... |
34 | 35 |
35 // Set to TimeDelta::Max() when unknown. | 36 // Set to TimeDelta::Max() when unknown. |
36 base::TimeDelta capture_delay = base::TimeDelta::Max(); | 37 base::TimeDelta capture_delay = base::TimeDelta::Max(); |
37 base::TimeDelta encode_delay = base::TimeDelta::Max(); | 38 base::TimeDelta encode_delay = base::TimeDelta::Max(); |
38 base::TimeDelta capture_pending_delay = base::TimeDelta::Max(); | 39 base::TimeDelta capture_pending_delay = base::TimeDelta::Max(); |
39 base::TimeDelta capture_overhead_delay = base::TimeDelta::Max(); | 40 base::TimeDelta capture_overhead_delay = base::TimeDelta::Max(); |
40 base::TimeDelta encode_pending_delay = base::TimeDelta::Max(); | 41 base::TimeDelta encode_pending_delay = base::TimeDelta::Max(); |
41 base::TimeDelta send_pending_delay = base::TimeDelta::Max(); | 42 base::TimeDelta send_pending_delay = base::TimeDelta::Max(); |
42 base::TimeDelta rtt_estimate = base::TimeDelta::Max(); | 43 base::TimeDelta rtt_estimate = base::TimeDelta::Max(); |
43 int bandwidth_estimate_kbps = -1; | 44 int bandwidth_estimate_kbps = -1; |
| 45 uint32_t capturer_id = webrtc::DesktopCapturerId::kUnknown; |
44 }; | 46 }; |
45 | 47 |
46 struct ClientFrameStats { | 48 struct ClientFrameStats { |
47 ClientFrameStats(); | 49 ClientFrameStats(); |
48 ClientFrameStats(const ClientFrameStats&); | 50 ClientFrameStats(const ClientFrameStats&); |
49 ~ClientFrameStats(); | 51 ~ClientFrameStats(); |
50 ClientFrameStats& operator=(const ClientFrameStats&); | 52 ClientFrameStats& operator=(const ClientFrameStats&); |
51 | 53 |
52 base::TimeTicks time_received; | 54 base::TimeTicks time_received; |
53 base::TimeTicks time_decoded; | 55 base::TimeTicks time_decoded; |
(...skipping 13 matching lines...) Expand all Loading... |
67 public: | 69 public: |
68 virtual void OnVideoFrameStats(const FrameStats& stats) = 0; | 70 virtual void OnVideoFrameStats(const FrameStats& stats) = 0; |
69 protected: | 71 protected: |
70 virtual ~FrameStatsConsumer() {} | 72 virtual ~FrameStatsConsumer() {} |
71 }; | 73 }; |
72 | 74 |
73 } // namespace protocol | 75 } // namespace protocol |
74 } // namespace remoting | 76 } // namespace remoting |
75 | 77 |
76 #endif // REMOTING_PROTOCOL_FRAME_STATS_H_ | 78 #endif // REMOTING_PROTOCOL_FRAME_STATS_H_ |
OLD | NEW |