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

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

Issue 299663011: Introduce MetricsServiceClient::StartGatheringMetrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 35
36 // Returns the release channel (e.g. stable, beta, etc) of the application. 36 // Returns the release channel (e.g. stable, beta, etc) of the application.
37 virtual SystemProfileProto::Channel GetChannel() = 0; 37 virtual SystemProfileProto::Channel GetChannel() = 0;
38 38
39 // Returns the version of the application as a string. 39 // Returns the version of the application as a string.
40 virtual std::string GetVersionString() = 0; 40 virtual std::string GetVersionString() = 0;
41 41
42 // Called by the metrics service when a log has been uploaded. 42 // Called by the metrics service when a log has been uploaded.
43 virtual void OnLogUploadComplete() = 0; 43 virtual void OnLogUploadComplete() = 0;
44 44
45 // Starts gathering metrics, calling |done_callback| when initial metrics
46 // gathering is complete.
47 virtual void StartGatheringMetrics(const base::Closure& done_callback) = 0;
48
45 // Called prior to a metrics log being closed, allowing the client to collect 49 // Called prior to a metrics log being closed, allowing the client to collect
46 // extra histograms that will go in that log. Asynchronous API - the client 50 // extra histograms that will go in that log. Asynchronous API - the client
47 // implementation should call |done_callback| when complete. 51 // implementation should call |done_callback| when complete.
48 virtual void CollectFinalMetrics(const base::Closure& done_callback) = 0; 52 virtual void CollectFinalMetrics(const base::Closure& done_callback) = 0;
49 }; 53 };
50 54
51 } // namespace metrics 55 } // namespace metrics
52 56
53 #endif // COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_ 57 #endif // COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/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