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 |