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

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

Issue 49753002: RAPPOR implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 // 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 virtual int GetScreenCount() const; 140 virtual int GetScreenCount() const;
141 141
142 // Fills |field_trial_ids| with the list of initialized field trials name and 142 // Fills |field_trial_ids| with the list of initialized field trials name and
143 // group ids. 143 // group ids.
144 virtual void GetFieldTrialIds( 144 virtual void GetFieldTrialIds(
145 std::vector<chrome_variations::ActiveGroupId>* field_trial_ids) const; 145 std::vector<chrome_variations::ActiveGroupId>* field_trial_ids) const;
146 146
147 private: 147 private:
148 FRIEND_TEST_ALL_PREFIXES(MetricsLogTest, ChromeOSStabilityData); 148 FRIEND_TEST_ALL_PREFIXES(MetricsLogTest, ChromeOSStabilityData);
149 149
150
151 void GetBloomFilterBits(std::string* bloom_filter_bits);
152
153 void WriteBloomFilterBits(
154 const std::string& bloom_filter_bits,
155 SystemProfileProto* system_profile);
156
150 // Writes application stability metrics (as part of the profile log). 157 // Writes application stability metrics (as part of the profile log).
151 // NOTE: Has the side-effect of clearing those counts. 158 // NOTE: Has the side-effect of clearing those counts.
152 void WriteStabilityElement( 159 void WriteStabilityElement(
153 const std::vector<content::WebPluginInfo>& plugin_list, 160 const std::vector<content::WebPluginInfo>& plugin_list,
154 base::TimeDelta incremental_uptime, 161 base::TimeDelta incremental_uptime,
155 PrefService* pref); 162 PrefService* pref);
156 163
157 // Within stability group, write plugin crash stats. 164 // Within stability group, write plugin crash stats.
158 void WritePluginStabilityElements( 165 void WritePluginStabilityElements(
159 const std::vector<content::WebPluginInfo>& plugin_list, 166 const std::vector<content::WebPluginInfo>& plugin_list,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 metrics::PerfProvider perf_provider_; 205 metrics::PerfProvider perf_provider_;
199 #endif 206 #endif
200 207
201 // Bluetooth Adapter instance for collecting information about paired devices. 208 // Bluetooth Adapter instance for collecting information about paired devices.
202 scoped_refptr<device::BluetoothAdapter> adapter_; 209 scoped_refptr<device::BluetoothAdapter> adapter_;
203 210
204 DISALLOW_COPY_AND_ASSIGN(MetricsLog); 211 DISALLOW_COPY_AND_ASSIGN(MetricsLog);
205 }; 212 };
206 213
207 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ 214 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | chrome/browser/metrics/metrics_log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698