| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |