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

Side by Side Diff: components/sync/protocol/user_event_specifics.proto

Issue 2897563002: Implement client side logging for language detection. (Closed)
Patch Set: update comment Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « components/sync/protocol/proto_visitors.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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";
(...skipping 16 matching lines...) Expand all
27 // ISO 639 language code will be used. 27 // ISO 639 language code will be used.
28 optional string language_code = 1; 28 optional string language_code = 1;
29 // Whether the detected language is reliable, note this is determined by 29 // Whether the detected language is reliable, note this is determined by
30 // the CLD3. 30 // the CLD3.
31 optional bool is_reliable = 2; 31 optional bool is_reliable = 2;
32 } 32 }
33 // Top n languages. Typically we just log the top language, but for page that 33 // Top n languages. Typically we just log the top language, but for page that
34 // we're not confident about, we may log up to 3 top languages in descending 34 // we're not confident about, we may log up to 3 top languages in descending
35 // order. 35 // order.
36 repeated Language detected_languages = 1; 36 repeated Language detected_languages = 1;
37 // Adopted language is the final determined language. 37 // Adopted language code is the code of final determined language.
38 // It will be stored only if it's different from the first detected language. 38 // It will be stored only if it's different from the first detected language.
39 optional string adopted_language = 2; 39 optional string adopted_language_code = 2;
40 } 40 }
41 41
42 message UserEventSpecifics { 42 message UserEventSpecifics {
43 // Time of event, as measured on the client (unix epoch). 43 // Time of event, as measured on the client (unix epoch).
44 optional int64 event_time_usec = 1; 44 optional int64 event_time_usec = 1;
45 45
46 // The |global_id| field of the associated navigation, if there is one. 46 // The |global_id| field of the associated navigation, if there is one.
47 optional int64 navigation_id = 2; 47 optional int64 navigation_id = 2;
48 48
49 // On startup we generate a new random id to identify which FieldTrialEvents 49 // On startup we generate a new random id to identify which FieldTrialEvents
50 // other events belonged to. 50 // other events belonged to.
51 optional fixed64 session_id = 3; 51 optional fixed64 session_id = 3;
52 52
53 oneof event { 53 oneof event {
54 FieldTrialEvent field_trial_event = 4; 54 FieldTrialEvent field_trial_event = 4;
55 LanguageDetection language_detection = 5; 55 LanguageDetection language_detection = 5;
56 } 56 }
57 } 57 }
OLDNEW
« no previous file with comments | « components/sync/protocol/proto_visitors.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698