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

Side by Side Diff: components/sync/protocol/proto_visitors.h

Issue 2875203002: UserEvent proto exploration for Translate use case. (Closed)
Patch Set: Adding proto_visitors.h change. 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ 5 #ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_
6 #define COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ 6 #define COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_
7 7
8 #include "components/sync/protocol/app_list_specifics.pb.h" 8 #include "components/sync/protocol/app_list_specifics.pb.h"
9 #include "components/sync/protocol/app_notification_specifics.pb.h" 9 #include "components/sync/protocol/app_notification_specifics.pb.h"
10 #include "components/sync/protocol/app_setting_specifics.pb.h" 10 #include "components/sync/protocol/app_setting_specifics.pb.h"
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 VISIT(custom_theme_name); 820 VISIT(custom_theme_name);
821 VISIT(custom_theme_id); 821 VISIT(custom_theme_id);
822 VISIT(custom_theme_update_url); 822 VISIT(custom_theme_update_url);
823 } 823 }
824 824
825 VISIT_PROTO_FIELDS(const sync_pb::TimeRangeDirective& proto) { 825 VISIT_PROTO_FIELDS(const sync_pb::TimeRangeDirective& proto) {
826 VISIT(start_time_usec); 826 VISIT(start_time_usec);
827 VISIT(end_time_usec); 827 VISIT(end_time_usec);
828 } 828 }
829 829
830 VISIT_PROTO_FIELDS(const sync_pb::TranslateLanguageDetection& proto) {
831 VISIT(detected_language_code);
832 VISIT(probability);
833 VISIT(text_bytes);
834 VISIT(is_reliable);
835 VISIT(final_language_decision);
836 }
837
838 VISIT_PROTO_FIELDS(const sync_pb::TranslateInteraction& proto) {
839 VISIT(user_set_from_language_code);
840 VISIT(user_set_to_language_code);
841 VISIT_ENUM(interaction);
842 }
843
830 VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) { 844 VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) {
831 VISIT(data_type_id); 845 VISIT(data_type_id);
832 VISIT(has_valid_hint); 846 VISIT(has_valid_hint);
833 } 847 }
834 848
835 VISIT_PROTO_FIELDS(const sync_pb::TypedUrlSpecifics& proto) { 849 VISIT_PROTO_FIELDS(const sync_pb::TypedUrlSpecifics& proto) {
836 VISIT(url); 850 VISIT(url);
837 VISIT(title); 851 VISIT(title);
838 VISIT(hidden); 852 VISIT(hidden);
839 VISIT_REP(visits); 853 VISIT_REP(visits);
840 VISIT_REP(visit_transitions); 854 VISIT_REP(visit_transitions);
841 } 855 }
842 856
843 VISIT_PROTO_FIELDS(const sync_pb::UniquePosition& proto) { 857 VISIT_PROTO_FIELDS(const sync_pb::UniquePosition& proto) {
844 VISIT_BYTES(value); 858 VISIT_BYTES(value);
845 VISIT_BYTES(compressed_value); 859 VISIT_BYTES(compressed_value);
846 VISIT(uncompressed_length); 860 VISIT(uncompressed_length);
847 VISIT_BYTES(custom_compressed_v1); 861 VISIT_BYTES(custom_compressed_v1);
848 } 862 }
849 863
850 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) { 864 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) {
851 VISIT(event_time_usec); 865 VISIT(event_time_usec);
852 VISIT(navigation_id); 866 VISIT(navigation_id);
853 VISIT(session_id); 867 VISIT(session_id);
868 VISIT(translate_language_detection);
869 VISIT(translate_interaction);
854 } 870 }
855 871
856 VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) { 872 VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) {
857 VISIT(id); 873 VISIT(id);
858 VISIT_ENUM(status); 874 VISIT_ENUM(status);
859 VISIT(name_on_card); 875 VISIT(name_on_card);
860 VISIT_ENUM(type); 876 VISIT_ENUM(type);
861 VISIT(last_four); 877 VISIT(last_four);
862 VISIT(exp_month); 878 VISIT(exp_month);
863 VISIT(exp_year); 879 VISIT(exp_year);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 919
904 } // namespace syncer 920 } // namespace syncer
905 921
906 #undef VISIT_ 922 #undef VISIT_
907 #undef VISIT_BYTES 923 #undef VISIT_BYTES
908 #undef VISIT_ENUM 924 #undef VISIT_ENUM
909 #undef VISIT 925 #undef VISIT
910 #undef VISIT_REP 926 #undef VISIT_REP
911 927
912 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ 928 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_
OLDNEW
« no previous file with comments | « components/sync/protocol/proto_memory_estimations.cc ('k') | components/sync/protocol/user_event_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698