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

Unified Diff: components/metrics/metrics_service_client.h

Issue 293023005: Move MetricsService final log collection tasks to client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_service_client.h
===================================================================
--- components/metrics/metrics_service_client.h (revision 272175)
+++ components/metrics/metrics_service_client.h (working copy)
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/callback_forward.h"
#include "components/metrics/proto/system_profile.pb.h"
namespace metrics {
@@ -40,6 +41,11 @@
// Called by the metrics service when a log has been uploaded.
virtual void OnLogUploadComplete() = 0;
+
+ // Called prior to a metrics log being closed, allowing the client to collect
+ // extra histograms that will go in that log. Asynchronous API - the client
+ // implementation should call |done_callback| when complete.
+ virtual void CollectFinalMetrics(const base::Closure& done_callback) = 0;
};
} // namespace metrics
« 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