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

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

Issue 676783003: Record document mode histogram in UMA on every upload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2171
Patch Set: Created 6 years, 2 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 | « chrome/chrome_browser.gypi ('k') | components/metrics/metrics_service.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 #ifndef COMPONENTS_METRICS_METRICS_PROVIDER_H_ 5 #ifndef COMPONENTS_METRICS_METRICS_PROVIDER_H_
6 #define COMPONENTS_METRICS_METRICS_PROVIDER_H_ 6 #define COMPONENTS_METRICS_METRICS_PROVIDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace metrics { 10 namespace metrics {
(...skipping 30 matching lines...) Expand all
41 // directly into |stability_proto| fields or by logging stability histograms 41 // directly into |stability_proto| fields or by logging stability histograms
42 // via the UMA_STABILITY_HISTOGRAM_ENUMERATION() macro. 42 // via the UMA_STABILITY_HISTOGRAM_ENUMERATION() macro.
43 virtual void ProvideStabilityMetrics( 43 virtual void ProvideStabilityMetrics(
44 SystemProfileProto* system_profile_proto); 44 SystemProfileProto* system_profile_proto);
45 45
46 // Called to indicate that saved stability prefs should be cleared, e.g. 46 // Called to indicate that saved stability prefs should be cleared, e.g.
47 // because they are from an old version and should not be kept. 47 // because they are from an old version and should not be kept.
48 virtual void ClearSavedStabilityMetrics(); 48 virtual void ClearSavedStabilityMetrics();
49 49
50 // Provides general metrics that are neither system profile nor stability 50 // Provides general metrics that are neither system profile nor stability
51 // metrics. 51 // metrics. May also be used to add histograms when final metrics are
52 // collected right before upload.
52 virtual void ProvideGeneralMetrics( 53 virtual void ProvideGeneralMetrics(
53 ChromeUserMetricsExtension* uma_proto); 54 ChromeUserMetricsExtension* uma_proto);
54 55
55 private: 56 private:
56 DISALLOW_COPY_AND_ASSIGN(MetricsProvider); 57 DISALLOW_COPY_AND_ASSIGN(MetricsProvider);
57 }; 58 };
58 59
59 } // namespace metrics 60 } // namespace metrics
60 61
61 #endif // COMPONENTS_METRICS_METRICS_PROVIDER_H_ 62 #endif // COMPONENTS_METRICS_METRICS_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698