| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_PERFORMANCE_TRACKER_H_ | 5 #ifndef REMOTING_PROTOCOL_PERFORMANCE_TRACKER_H_ |
| 6 #define REMOTING_PROTOCOL_PERFORMANCE_TRACKER_H_ | 6 #define REMOTING_PROTOCOL_PERFORMANCE_TRACKER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 10 #include "remoting/base/rate_counter.h" | 10 #include "remoting/base/rate_counter.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // Used to update UMA stats, if set. | 95 // Used to update UMA stats, if set. |
| 96 UpdateUmaCustomHistogramCallback uma_custom_counts_updater_; | 96 UpdateUmaCustomHistogramCallback uma_custom_counts_updater_; |
| 97 UpdateUmaCustomHistogramCallback uma_custom_times_updater_; | 97 UpdateUmaCustomHistogramCallback uma_custom_times_updater_; |
| 98 UpdateUmaEnumHistogramCallback uma_enum_histogram_updater_; | 98 UpdateUmaEnumHistogramCallback uma_enum_histogram_updater_; |
| 99 | 99 |
| 100 // The latest input timestamp that a VideoPacket was seen annotated with. | 100 // The latest input timestamp that a VideoPacket was seen annotated with. |
| 101 int64_t latest_input_event_timestamp_ = 0; | 101 int64_t latest_input_event_timestamp_ = 0; |
| 102 | 102 |
| 103 bool is_paused_ = false; | 103 bool is_paused_ = false; |
| 104 | 104 |
| 105 base::RepeatingTimer<PerformanceTracker> upload_uma_stats_timer_; | 105 base::RepeatingTimer upload_uma_stats_timer_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(PerformanceTracker); | 107 DISALLOW_COPY_AND_ASSIGN(PerformanceTracker); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace protocol | 110 } // namespace protocol |
| 111 } // namespace remoting | 111 } // namespace remoting |
| 112 | 112 |
| 113 #endif // REMOTING_PROTOCOL_PERFORMANCE_TRACKER_H_ | 113 #endif // REMOTING_PROTOCOL_PERFORMANCE_TRACKER_H_ |
| OLD | NEW |