Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: remoting/protocol/frame_stats.h

Issue 2425873002: Add network parameters fields in FrameStatsMessage (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/proto/video_stats.proto ('k') | remoting/protocol/frame_stats.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « remoting/proto/video_stats.proto ('k') | remoting/protocol/frame_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698