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

Side by Side Diff: components/metrics/histogram_encoder.h

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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
« no previous file with comments | « components/metrics/gpu/gpu_metrics_provider.h ('k') | components/metrics/histogram_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 an utility function that records any changes in a given 5 // This file defines an utility function that records any changes in a given
6 // histogram for transmission. 6 // histogram for transmission.
7 7
8 #ifndef COMPONENTS_METRICS_HISTOGRAM_ENCODER_H_ 8 #ifndef COMPONENTS_METRICS_HISTOGRAM_ENCODER_H_
9 #define COMPONENTS_METRICS_HISTOGRAM_ENCODER_H_ 9 #define COMPONENTS_METRICS_HISTOGRAM_ENCODER_H_
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h"
14 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" 13 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h"
15 14
16 namespace base { 15 namespace base {
17 class HistogramSamples; 16 class HistogramSamples;
18 } 17 }
19 18
20 namespace metrics { 19 namespace metrics {
21 20
22 // Record any changes (histogram deltas of counts from |snapshot|) into 21 // Record any changes (histogram deltas of counts from |snapshot|) into
23 // |uma_proto| for the given histogram (|histogram_name|). 22 // |uma_proto| for the given histogram (|histogram_name|).
24 void EncodeHistogramDelta(const std::string& histogram_name, 23 void EncodeHistogramDelta(const std::string& histogram_name,
25 const base::HistogramSamples& snapshot, 24 const base::HistogramSamples& snapshot,
26 ChromeUserMetricsExtension* uma_proto); 25 ChromeUserMetricsExtension* uma_proto);
27 26
28 } // namespace metrics 27 } // namespace metrics
29 28
30 #endif // COMPONENTS_METRICS_HISTOGRAM_ENCODER_H_ 29 #endif // COMPONENTS_METRICS_HISTOGRAM_ENCODER_H_
OLDNEW
« no previous file with comments | « components/metrics/gpu/gpu_metrics_provider.h ('k') | components/metrics/histogram_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698