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

Side by Side Diff: chrome/browser/metrics/perf/perf_provider_chromeos.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_
6 #define CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_ 6 #define CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // long ago the session restore started. |num_tabs_restored| is the total 108 // long ago the session restore started. |num_tabs_restored| is the total
109 // number of tabs being restored. 109 // number of tabs being restored.
110 void CollectPerfDataAfterSessionRestore( 110 void CollectPerfDataAfterSessionRestore(
111 const base::TimeDelta& time_after_restore, 111 const base::TimeDelta& time_after_restore,
112 int num_tabs_restored); 112 int num_tabs_restored);
113 113
114 // Vector of SampledProfile protobufs containing perf profiles. 114 // Vector of SampledProfile protobufs containing perf profiles.
115 std::vector<SampledProfile> cached_perf_data_; 115 std::vector<SampledProfile> cached_perf_data_;
116 116
117 // For scheduling collection of perf data. 117 // For scheduling collection of perf data.
118 base::OneShotTimer<PerfProvider> timer_; 118 base::OneShotTimer timer_;
119 119
120 // For detecting when changes to the login state. 120 // For detecting when changes to the login state.
121 LoginObserver login_observer_; 121 LoginObserver login_observer_;
122 122
123 // Record of the last login time. 123 // Record of the last login time.
124 base::TimeTicks login_time_; 124 base::TimeTicks login_time_;
125 125
126 // Record of the start of the upcoming profiling interval. 126 // Record of the start of the upcoming profiling interval.
127 base::TimeTicks next_profiling_interval_start_; 127 base::TimeTicks next_profiling_interval_start_;
128 128
(...skipping 10 matching lines...) Expand all
139 139
140 // To pass around the "this" pointer across threads safely. 140 // To pass around the "this" pointer across threads safely.
141 base::WeakPtrFactory<PerfProvider> weak_factory_; 141 base::WeakPtrFactory<PerfProvider> weak_factory_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(PerfProvider); 143 DISALLOW_COPY_AND_ASSIGN(PerfProvider);
144 }; 144 };
145 145
146 } // namespace metrics 146 } // namespace metrics
147 147
148 #endif // CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_ 148 #endif // CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698