Index: components/metrics/public/interfaces/single_sample_metrics.mojom |
diff --git a/components/metrics/public/interfaces/single_sample_metrics.mojom b/components/metrics/public/interfaces/single_sample_metrics.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..664d866393823b804733aef00dfee8438d5a90e0 |
--- /dev/null |
+++ b/components/metrics/public/interfaces/single_sample_metrics.mojom |
@@ -0,0 +1,23 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+module metrics.mojom; |
+ |
+interface SingleSampleMetricsProvider { |
Alexei Svitkine (slow)
2017/05/03 21:18:48
Add a comment mentioning to see single_sample_metr
DaleCurtis
2017/05/03 21:37:51
Done.
|
+ // Returns a SingleSampleMetric. |
+ // |
+ // A single sample metric only reports its sample once at destruction time. |
+ // The sample may be changed prior to destruction using the SetSample() method |
+ // as many times as desired. |
+ // |
+ // See base/metrics/histograms.h for parameter definitions. |request| is the |
+ // returned histogram. |
+ AcquireSingleSampleMetric(string name, int32 min, int32 max, |
Alexei Svitkine (slow)
2017/05/03 21:18:47
Nit: histogram_name
DaleCurtis
2017/05/03 21:37:51
Done.
|
+ uint32 bucket_count, int32 flags, |
+ SingleSampleMetric& request); |
+}; |
+ |
+interface SingleSampleMetric { |
+ SetSample(int32 sample); |
+}; |