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

Side by Side Diff: webrtc/video/call_stats.h

Issue 1652983002: Remove mutable from rtc::CriticalSections. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | webrtc/video/encoder_state_feedback.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 }; 53 };
54 54
55 protected: 55 protected:
56 void OnRttUpdate(int64_t rtt); 56 void OnRttUpdate(int64_t rtt);
57 57
58 int64_t avg_rtt_ms() const; 58 int64_t avg_rtt_ms() const;
59 59
60 private: 60 private:
61 Clock* const clock_; 61 Clock* const clock_;
62 // Protecting all members. 62 // Protecting all members.
63 mutable rtc::CriticalSection crit_; 63 rtc::CriticalSection crit_;
64 // Observer receiving statistics updates. 64 // Observer receiving statistics updates.
65 rtc::scoped_ptr<RtcpRttStats> rtcp_rtt_stats_; 65 rtc::scoped_ptr<RtcpRttStats> rtcp_rtt_stats_;
66 // The last time 'Process' resulted in statistic update. 66 // The last time 'Process' resulted in statistic update.
67 int64_t last_process_time_; 67 int64_t last_process_time_;
68 // The last RTT in the statistics update (zero if there is no valid estimate). 68 // The last RTT in the statistics update (zero if there is no valid estimate).
69 int64_t max_rtt_ms_; 69 int64_t max_rtt_ms_;
70 int64_t avg_rtt_ms_; 70 int64_t avg_rtt_ms_;
71 71
72 // All Rtt reports within valid time interval, oldest first. 72 // All Rtt reports within valid time interval, oldest first.
73 std::list<RttTime> reports_; 73 std::list<RttTime> reports_;
74 74
75 // Observers getting stats reports. 75 // Observers getting stats reports.
76 std::list<CallStatsObserver*> observers_; 76 std::list<CallStatsObserver*> observers_;
77 77
78 RTC_DISALLOW_COPY_AND_ASSIGN(CallStats); 78 RTC_DISALLOW_COPY_AND_ASSIGN(CallStats);
79 }; 79 };
80 80
81 } // namespace webrtc 81 } // namespace webrtc
82 82
83 #endif // WEBRTC_VIDEO_CALL_STATS_H_ 83 #endif // WEBRTC_VIDEO_CALL_STATS_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/encoder_state_feedback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698