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 // Sync protocol datatype extension for user events. | 5 // Sync protocol datatype extension for user events. |
6 | 6 |
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
8 // any fields in this file. | 8 // any fields in this file. |
9 | 9 |
10 syntax = "proto2"; | 10 syntax = "proto2"; |
11 | 11 |
12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
13 | 13 |
14 package sync_pb; | 14 package sync_pb; |
15 | 15 |
16 message UserEventSpecifics { | 16 message UserEventSpecifics { |
17 // Time of event, as measured on the client (unix epoch). | 17 // Time of event, as measured on the client (unix epoch). |
18 optional int64 event_time_usec = 1; | 18 optional int64 event_time_usec = 1; |
19 | 19 |
20 // The |global_id| field of the associated navigation, if there is one. | 20 // The |global_id| field of the associated navigation, if there is one. |
21 optional int64 navigation_id = 2; | 21 optional int64 navigation_id = 2; |
22 | 22 |
| 23 // On startup we generate a new random id to identify which FieldTrialEvents |
| 24 // other events belonged to. |
| 25 optional fixed64 session_id = 3; |
| 26 |
23 // TODO(skym): Wrap actual event payloads in a oneof. | 27 // TODO(skym): Wrap actual event payloads in a oneof. |
24 } | 28 } |
OLD | NEW |