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

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

Issue 2615753002: Remove time ticks metrics and MetricServiceClient::OnLogUploadComplete (Closed)
Patch Set: Rebase Created 3 years, 11 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/metrics_service.cc ('k') | components/metrics/test_metrics_service_client.h » ('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_SERVICE_CLIENT_H_ 5 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
6 #define COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_ 6 #define COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Returns the version of the application as a string. 59 // Returns the version of the application as a string.
60 virtual std::string GetVersionString() = 0; 60 virtual std::string GetVersionString() = 0;
61 61
62 // Called by the metrics service when a new environment has been recorded. 62 // Called by the metrics service when a new environment has been recorded.
63 // Takes the serialized environment as a parameter. The contents of 63 // Takes the serialized environment as a parameter. The contents of
64 // |serialized_environment| are consumed by the call, but the caller maintains 64 // |serialized_environment| are consumed by the call, but the caller maintains
65 // ownership. 65 // ownership.
66 virtual void OnEnvironmentUpdate(std::string* serialized_environment) {} 66 virtual void OnEnvironmentUpdate(std::string* serialized_environment) {}
67 67
68 // Called by the metrics service when a log has been uploaded.
69 virtual void OnLogUploadComplete() = 0;
70
71 // Called by the metrics service to record a clean shutdown. 68 // Called by the metrics service to record a clean shutdown.
72 virtual void OnLogCleanShutdown() {} 69 virtual void OnLogCleanShutdown() {}
73 70
74 // Gathers metrics that will be filled into the system profile protobuf, 71 // Gathers metrics that will be filled into the system profile protobuf,
75 // calling |done_callback| when complete. 72 // calling |done_callback| when complete.
76 virtual void InitializeSystemProfileMetrics( 73 virtual void InitializeSystemProfileMetrics(
77 const base::Closure& done_callback) = 0; 74 const base::Closure& done_callback) = 0;
78 75
79 // Called prior to a metrics log being closed, allowing the client to collect 76 // Called prior to a metrics log being closed, allowing the client to collect
80 // extra histograms that will go in that log. Asynchronous API - the client 77 // extra histograms that will go in that log. Asynchronous API - the client
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // shown during first-run. 111 // shown during first-run.
115 virtual EnableMetricsDefault GetMetricsReportingDefaultState(); 112 virtual EnableMetricsDefault GetMetricsReportingDefaultState();
116 113
117 // Returns whether cellular logic is enabled for metrics reporting. 114 // Returns whether cellular logic is enabled for metrics reporting.
118 virtual bool IsUMACellularUploadLogicEnabled(); 115 virtual bool IsUMACellularUploadLogicEnabled();
119 }; 116 };
120 117
121 } // namespace metrics 118 } // namespace metrics
122 119
123 #endif // COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_ 120 #endif // COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « components/metrics/metrics_service.cc ('k') | components/metrics/test_metrics_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698