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

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

Issue 10795060: Rename all of experiments_helper to variations_helper, including files, namespaces, and various fun… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase Created 8 years, 4 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 10 matching lines...) Expand all
21 class PrefService; 21 class PrefService;
22 22
23 namespace base { 23 namespace base {
24 class DictionaryValue; 24 class DictionaryValue;
25 } 25 }
26 26
27 namespace tracked_objects { 27 namespace tracked_objects {
28 struct ProcessDataSnapshot; 28 struct ProcessDataSnapshot;
29 } 29 }
30 30
31 namespace experiments_helper { 31 namespace chrome_variations {
32 struct SelectedGroupId; 32 struct SelectedGroupId;
33 } 33 }
34 34
35 namespace webkit { 35 namespace webkit {
36 struct WebPluginInfo; 36 struct WebPluginInfo;
37 } 37 }
38 38
39 // This is a small helper struct to pass Google Update metrics in a single 39 // This is a small helper struct to pass Google Update metrics in a single
40 // reference argument to MetricsLog::RecordEnvironment(). 40 // reference argument to MetricsLog::RecordEnvironment().
41 struct GoogleUpdateMetrics { 41 struct GoogleUpdateMetrics {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Returns the screen size for the primary monitor. 126 // Returns the screen size for the primary monitor.
127 virtual gfx::Size GetScreenSize() const; 127 virtual gfx::Size GetScreenSize() const;
128 128
129 // Returns the number of monitors the user is using. 129 // Returns the number of monitors the user is using.
130 virtual int GetScreenCount() const; 130 virtual int GetScreenCount() const;
131 131
132 // Fills |field_trial_ids| with the list of initialized field trials name and 132 // Fills |field_trial_ids| with the list of initialized field trials name and
133 // group ids. 133 // group ids.
134 virtual void GetFieldTrialIds( 134 virtual void GetFieldTrialIds(
135 std::vector<experiments_helper::SelectedGroupId>* field_trial_ids) const; 135 std::vector<chrome_variations::SelectedGroupId>* field_trial_ids) const;
136 136
137 private: 137 private:
138 FRIEND_TEST_ALL_PREFIXES(MetricsLogTest, ChromeOSStabilityData); 138 FRIEND_TEST_ALL_PREFIXES(MetricsLogTest, ChromeOSStabilityData);
139 139
140 // Writes application stability metrics (as part of the profile log). 140 // Writes application stability metrics (as part of the profile log).
141 // NOTE: Has the side-effect of clearing those counts. 141 // NOTE: Has the side-effect of clearing those counts.
142 void WriteStabilityElement( 142 void WriteStabilityElement(
143 const std::vector<webkit::WebPluginInfo>& plugin_list, 143 const std::vector<webkit::WebPluginInfo>& plugin_list,
144 PrefService* pref); 144 PrefService* pref);
145 145
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 const base::DictionaryValue& profile_metrics); 177 const base::DictionaryValue& profile_metrics);
178 178
179 // Writes info about the Google Update install that is managing this client. 179 // Writes info about the Google Update install that is managing this client.
180 // This is a no-op if called on a non-Windows platform. 180 // This is a no-op if called on a non-Windows platform.
181 void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics); 181 void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics);
182 182
183 DISALLOW_COPY_AND_ASSIGN(MetricsLog); 183 DISALLOW_COPY_AND_ASSIGN(MetricsLog);
184 }; 184 };
185 185
186 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ 186 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/field_trial_synchronizer.cc ('k') | chrome/browser/metrics/metrics_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698