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

Unified Diff: components/ukm/public/interfaces/ukm_interface.mojom

Issue 2883563002: Refactor UKM interface for mojo-ification (Closed)
Patch Set: Fix uma_session_stats.cc Created 3 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
Index: components/ukm/public/interfaces/ukm_interface.mojom
diff --git a/components/ukm/public/interfaces/ukm_interface.mojom b/components/ukm/public/interfaces/ukm_interface.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..0625916b88a8fc6e45789b11166da00e06210db4
--- /dev/null
+++ b/components/ukm/public/interfaces/ukm_interface.mojom
@@ -0,0 +1,22 @@
+// 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 ukm.mojom;
+
+import "url/mojo/url.mojom";
+
+struct UkmMetric {
+ uint64 metric_hash;
+ int64 value;
+};
+
+struct UkmEntry {
+ int64 source_id;
+ uint64 event_hash;
+ array<UkmMetric> metrics;
+};
+
+interface UkmRecorderInterface {
+ AddEntry(UkmEntry entry);
+};

Powered by Google App Engine
This is Rietveld 408576698