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

Unified Diff: components/metrics/proto/ukm/source.proto

Issue 2567263003: Basic UkmService implementation (Closed)
Patch Set: Rebase Created 3 years, 11 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/metrics/proto/ukm/source.proto
diff --git a/components/metrics/proto/ukm/source.proto b/components/metrics/proto/ukm/source.proto
new file mode 100644
index 0000000000000000000000000000000000000000..44afe3a737b1905068e331a3a2f2c97045e8f323
--- /dev/null
+++ b/components/metrics/proto/ukm/source.proto
@@ -0,0 +1,29 @@
+// 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.
+
+syntax = "proto2";
+
+package ukm;
+
+option optimize_for = LITE_RUNTIME;
+
+// Source contains data related to a top-level navigation.
+// Next tag: 5
+message Source {
+ // A identifier for the source. This should be unique even across sessions.
+ optional int32 id = 1;
+
+ // The url of the source, as recorded in history. If this URL has not been
+ // discovered by Google's crawler, it must be stripped to the security origin
+ // before recording to logs. If the security origin has not been discovered
+ // by the crawler, the security origin must not be logged.
+ optional string url = 2;
+
+ // Timestamp of navigation to this Source, as seen by the client. Time of
+ // events related to this Source will generally be relative to this timestamp.
+ optional int64 navigation_time_msec = 3;
+
+ // Time between navigation and the first meaningful paint, in milliseconds.
+ optional int64 first_meaningful_paint_msec = 4;
+}

Powered by Google App Engine
This is Rietveld 408576698