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

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

Issue 2522593008: Delete the stability file on clean exit. (Closed)
Patch Set: Strip extra whitespace Created 4 years 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') | no next file » | 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 68 // Called by the metrics service when a log has been uploaded.
69 virtual void OnLogUploadComplete() = 0; 69 virtual void OnLogUploadComplete() = 0;
70 70
71 // Called by the metrics service to record a clean shutdown.
72 virtual void OnLogCleanShutdown() {}
73
71 // Gathers metrics that will be filled into the system profile protobuf, 74 // Gathers metrics that will be filled into the system profile protobuf,
72 // calling |done_callback| when complete. 75 // calling |done_callback| when complete.
73 virtual void InitializeSystemProfileMetrics( 76 virtual void InitializeSystemProfileMetrics(
74 const base::Closure& done_callback) = 0; 77 const base::Closure& done_callback) = 0;
75 78
76 // Called prior to a metrics log being closed, allowing the client to collect 79 // Called prior to a metrics log being closed, allowing the client to collect
77 // extra histograms that will go in that log. Asynchronous API - the client 80 // extra histograms that will go in that log. Asynchronous API - the client
78 // implementation should call |done_callback| when complete. 81 // implementation should call |done_callback| when complete.
79 virtual void CollectFinalMetricsForLog( 82 virtual void CollectFinalMetricsForLog(
80 const base::Closure& done_callback) = 0; 83 const base::Closure& done_callback) = 0;
(...skipping 25 matching lines...) Expand all
106 // shown during first-run. 109 // shown during first-run.
107 virtual EnableMetricsDefault GetMetricsReportingDefaultState(); 110 virtual EnableMetricsDefault GetMetricsReportingDefaultState();
108 111
109 // Returns whether cellular logic is enabled for metrics reporting. 112 // Returns whether cellular logic is enabled for metrics reporting.
110 virtual bool IsUMACellularUploadLogicEnabled(); 113 virtual bool IsUMACellularUploadLogicEnabled();
111 }; 114 };
112 115
113 } // namespace metrics 116 } // namespace metrics
114 117
115 #endif // COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_ 118 #endif // COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « components/metrics/metrics_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698