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

Side by Side Diff: chrome/browser/metrics/metrics_log.h

Issue 291163006: Create GPUMetricsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 years, 7 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 | Annotate | Revision Log
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 // This file defines a set of user experience metrics data recorded by 5 // This file defines a set of user experience metrics data recorded by
6 // the MetricsService. This is the unit of data that is sent to the server. 6 // the MetricsService. This is the unit of data that is sent to the server.
7 7
8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_ 8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_
9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_ 9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 const base::TimeTicks& creation_time() const { 135 const base::TimeTicks& creation_time() const {
136 return creation_time_; 136 return creation_time_;
137 } 137 }
138 138
139 protected: 139 protected:
140 // Exposed for the sake of mocking in test code. 140 // Exposed for the sake of mocking in test code.
141 141
142 // Returns the PrefService from which to log metrics data. 142 // Returns the PrefService from which to log metrics data.
143 virtual PrefService* GetPrefService(); 143 virtual PrefService* GetPrefService();
144 144
145 // Returns the screen size for the primary monitor.
146 virtual gfx::Size GetScreenSize() const;
147
148 // Returns the device scale factor for the primary monitor.
149 virtual float GetScreenDeviceScaleFactor() const;
150
151 // Returns the number of monitors the user is using.
152 virtual int GetScreenCount() const;
153
154 // Fills |field_trial_ids| with the list of initialized field trials name and 145 // Fills |field_trial_ids| with the list of initialized field trials name and
155 // group ids. 146 // group ids.
156 virtual void GetFieldTrialIds( 147 virtual void GetFieldTrialIds(
157 std::vector<variations::ActiveGroupId>* field_trial_ids) const; 148 std::vector<variations::ActiveGroupId>* field_trial_ids) const;
158 149
159 // Exposed to allow dependency injection for tests. 150 // Exposed to allow dependency injection for tests.
160 #if defined(OS_CHROMEOS) 151 #if defined(OS_CHROMEOS)
161 scoped_ptr<MetricsLogChromeOS> metrics_log_chromeos_; 152 scoped_ptr<MetricsLogChromeOS> metrics_log_chromeos_;
162 #endif 153 #endif
163 154
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // The time when the current log was created. 190 // The time when the current log was created.
200 const base::TimeTicks creation_time_; 191 const base::TimeTicks creation_time_;
201 192
202 // For including information on which extensions are installed in reports. 193 // For including information on which extensions are installed in reports.
203 HashedExtensionMetrics extension_metrics_; 194 HashedExtensionMetrics extension_metrics_;
204 195
205 DISALLOW_COPY_AND_ASSIGN(MetricsLog); 196 DISALLOW_COPY_AND_ASSIGN(MetricsLog);
206 }; 197 };
207 198
208 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ 199 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698