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 FieldTrialEvent { |
| 17 message FieldTrial { |
| 18 optional fixed32 name_id = 1; |
| 19 optional fixed32 group_id = 2; |
| 20 } |
| 21 repeated FieldTrial field_trials = 1; |
| 22 } |
| 23 |
16 message UserEventSpecifics { | 24 message UserEventSpecifics { |
17 // Time of event, as measured on the client (unix epoch). | 25 // Time of event, as measured on the client (unix epoch). |
18 optional int64 event_time_usec = 1; | 26 optional int64 event_time_usec = 1; |
19 | 27 |
20 // The |global_id| field of the associated navigation, if there is one. | 28 // The |global_id| field of the associated navigation, if there is one. |
21 optional int64 navigation_id = 2; | 29 optional int64 navigation_id = 2; |
22 | 30 |
23 // On startup we generate a new random id to identify which FieldTrialEvents | 31 // On startup we generate a new random id to identify which FieldTrialEvents |
24 // other events belonged to. | 32 // other events belonged to. |
25 optional fixed64 session_id = 3; | 33 optional fixed64 session_id = 3; |
26 | 34 |
27 // TODO(skym): Wrap actual event payloads in a oneof. | 35 oneof event { FieldTrialEvent field_trial_event = 4; } |
28 } | 36 } |
OLD | NEW |