OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 package ukm; | 7 package ukm; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
11 // Source contains data related to a top-level navigation. | 11 // Source contains data related to a top-level navigation. |
12 // Next tag: 6 | 12 // Next tag: 6 |
13 message Source { | 13 message Source { |
14 // An identifier for the source. This should be unique within a session. | 14 // An identifier for the source. This should be unique within a session. |
15 optional int32 id = 1; | 15 optional int32 id = 1; |
16 | 16 |
17 // The URL of the source, as recorded in history. If this URL has not been | 17 // The URL of the source, as recorded in history. If this URL has not been |
18 // discovered by Google's crawler, it should not be recorded. | 18 // discovered by Google's crawler, it should not be recorded. |
19 optional string url = 2; | 19 optional string url = 2; |
20 | 20 |
21 // The origin of the URL. This is reserved to be used by server side only. | 21 // The origin of the URL. This is reserved to be used by server side only. |
22 reserved 5; | 22 reserved 5; |
23 reserved "url_origin"; | 23 reserved "url_origin"; |
24 | 24 |
25 // Timestamp of navigation to this Source, as seen by the client. Time of | 25 // Timestamp of navigation to this Source, as seen by the client. Time of |
26 // events related to this Source will generally be relative to this timestamp. | 26 // events related to this Source will generally be relative to this timestamp. |
27 optional int64 navigation_time_msec = 3; | 27 optional int64 navigation_time_msec = 3; |
Zhen Wang
2017/03/01 23:28:41
Are we also going to deprecate this?
And this is
Bryan McQuade
2017/03/01 23:35:32
I think we want to retain this one, perhaps renami
| |
28 | 28 |
29 // Time between navigation and the first contentful paint, in milliseconds. | 29 // Time between navigation and the first contentful paint, in |
30 optional int64 first_contentful_paint_msec = 4; | 30 // milliseconds. Deprecated. Use ukm::Entry instead. |
31 optional int64 first_contentful_paint_msec = 4 [deprecated = true]; | |
31 } | 32 } |
OLD | NEW |