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: 7 | 12 // Next tag: 7 |
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 int64 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 // The initial URL of the source. Set in cases where the source URL changed | 25 // The initial URL of the source. Set in cases where the source URL changed |
26 // (e.g. it was redirected), otherwise unset. If this URL has not been | 26 // (e.g. it was redirected), otherwise unset. If this URL has not been |
27 // discovered by Google's crawler, it should not be recorded. | 27 // discovered by Google's crawler, it should not be recorded. |
28 optional string initial_url = 6; | 28 optional string initial_url = 6; |
29 | 29 |
30 // Timestamp of navigation to this Source, as seen by the client. Time of | 30 // Timestamp of navigation to this Source, as seen by the client. Time of |
31 // events related to this Source will generally be relative to this timestamp. | 31 // events related to this Source will generally be relative to this timestamp. |
32 optional int64 navigation_time_msec = 3; | 32 optional int64 navigation_time_msec = 3; |
33 | 33 |
34 // Time between navigation and the first contentful paint, in | 34 // Time between navigation and the first contentful paint, in |
35 // milliseconds. Deprecated. Use ukm::Entry instead. | 35 // milliseconds. Deprecated. Use ukm::Entry instead. |
36 optional int64 first_contentful_paint_msec = 4 [deprecated = true]; | 36 optional int64 first_contentful_paint_msec = 4 [deprecated = true]; |
37 } | 37 } |
OLD | NEW |