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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « remoting/protocol/monitored_video_stub_unittest.cc ('k') | remoting/protocol/pseudotcp_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698