| OLD | NEW |
| 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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 VISIT(custom_theme_name); | 840 VISIT(custom_theme_name); |
| 841 VISIT(custom_theme_id); | 841 VISIT(custom_theme_id); |
| 842 VISIT(custom_theme_update_url); | 842 VISIT(custom_theme_update_url); |
| 843 } | 843 } |
| 844 | 844 |
| 845 VISIT_PROTO_FIELDS(const sync_pb::TimeRangeDirective& proto) { | 845 VISIT_PROTO_FIELDS(const sync_pb::TimeRangeDirective& proto) { |
| 846 VISIT(start_time_usec); | 846 VISIT(start_time_usec); |
| 847 VISIT(end_time_usec); | 847 VISIT(end_time_usec); |
| 848 } | 848 } |
| 849 | 849 |
| 850 VISIT_PROTO_FIELDS(const sync_pb::Translation& proto) { |
| 851 VISIT(from_language_code); |
| 852 VISIT(to_language_code); |
| 853 VISIT_ENUM(interaction); |
| 854 } |
| 855 |
| 850 VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) { | 856 VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) { |
| 851 VISIT(data_type_id); | 857 VISIT(data_type_id); |
| 852 VISIT(has_valid_hint); | 858 VISIT(has_valid_hint); |
| 853 } | 859 } |
| 854 | 860 |
| 855 VISIT_PROTO_FIELDS(const sync_pb::TypedUrlSpecifics& proto) { | 861 VISIT_PROTO_FIELDS(const sync_pb::TypedUrlSpecifics& proto) { |
| 856 VISIT(url); | 862 VISIT(url); |
| 857 VISIT(title); | 863 VISIT(title); |
| 858 VISIT(hidden); | 864 VISIT(hidden); |
| 859 VISIT_REP(visits); | 865 VISIT_REP(visits); |
| 860 VISIT_REP(visit_transitions); | 866 VISIT_REP(visit_transitions); |
| 861 } | 867 } |
| 862 | 868 |
| 863 VISIT_PROTO_FIELDS(const sync_pb::UniquePosition& proto) { | 869 VISIT_PROTO_FIELDS(const sync_pb::UniquePosition& proto) { |
| 864 VISIT_BYTES(value); | 870 VISIT_BYTES(value); |
| 865 VISIT_BYTES(compressed_value); | 871 VISIT_BYTES(compressed_value); |
| 866 VISIT(uncompressed_length); | 872 VISIT(uncompressed_length); |
| 867 VISIT_BYTES(custom_compressed_v1); | 873 VISIT_BYTES(custom_compressed_v1); |
| 868 } | 874 } |
| 869 | 875 |
| 870 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) { | 876 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) { |
| 871 VISIT(event_time_usec); | 877 VISIT(event_time_usec); |
| 872 VISIT(navigation_id); | 878 VISIT(navigation_id); |
| 873 VISIT(session_id); | 879 VISIT(session_id); |
| 874 VISIT(field_trial_event); | 880 VISIT(field_trial_event); |
| 875 VISIT(language_detection); | 881 VISIT(language_detection); |
| 882 VISIT(translation); |
| 876 } | 883 } |
| 877 | 884 |
| 878 VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) { | 885 VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) { |
| 879 VISIT(id); | 886 VISIT(id); |
| 880 VISIT_ENUM(status); | 887 VISIT_ENUM(status); |
| 881 VISIT(name_on_card); | 888 VISIT(name_on_card); |
| 882 VISIT_ENUM(type); | 889 VISIT_ENUM(type); |
| 883 VISIT(last_four); | 890 VISIT(last_four); |
| 884 VISIT(exp_month); | 891 VISIT(exp_month); |
| 885 VISIT(exp_year); | 892 VISIT(exp_year); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 | 932 |
| 926 } // namespace syncer | 933 } // namespace syncer |
| 927 | 934 |
| 928 #undef VISIT_ | 935 #undef VISIT_ |
| 929 #undef VISIT_BYTES | 936 #undef VISIT_BYTES |
| 930 #undef VISIT_ENUM | 937 #undef VISIT_ENUM |
| 931 #undef VISIT | 938 #undef VISIT |
| 932 #undef VISIT_REP | 939 #undef VISIT_REP |
| 933 | 940 |
| 934 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ | 941 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ |
| OLD | NEW |