| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 VISIT(enabled); | 465 VISIT(enabled); |
| 466 VISIT(favicon_sync_limit); | 466 VISIT(favicon_sync_limit); |
| 467 } | 467 } |
| 468 | 468 |
| 469 VISIT_PROTO_FIELDS(const sync_pb::FaviconTrackingSpecifics& proto) { | 469 VISIT_PROTO_FIELDS(const sync_pb::FaviconTrackingSpecifics& proto) { |
| 470 VISIT(favicon_url); | 470 VISIT(favicon_url); |
| 471 VISIT(last_visit_time_ms); | 471 VISIT(last_visit_time_ms); |
| 472 VISIT(is_bookmarked); | 472 VISIT(is_bookmarked); |
| 473 } | 473 } |
| 474 | 474 |
| 475 VISIT_PROTO_FIELDS(const sync_pb::FieldTrialEvent::FieldTrial& proto) { |
| 476 VISIT(name_id); |
| 477 VISIT(group_id); |
| 478 } |
| 479 |
| 480 VISIT_PROTO_FIELDS(const sync_pb::FieldTrialEvent& proto) { |
| 481 VISIT_REP(field_trials); |
| 482 } |
| 483 |
| 475 VISIT_PROTO_FIELDS(const sync_pb::GcmChannelFlags& proto) { | 484 VISIT_PROTO_FIELDS(const sync_pb::GcmChannelFlags& proto) { |
| 476 VISIT(enabled); | 485 VISIT(enabled); |
| 477 } | 486 } |
| 478 | 487 |
| 479 VISIT_PROTO_FIELDS(const sync_pb::GcmInvalidationsFlags& proto) { | 488 VISIT_PROTO_FIELDS(const sync_pb::GcmInvalidationsFlags& proto) { |
| 480 VISIT(enabled); | 489 VISIT(enabled); |
| 481 } | 490 } |
| 482 | 491 |
| 483 VISIT_PROTO_FIELDS(const sync_pb::GetUpdateTriggers& proto) { | 492 VISIT_PROTO_FIELDS(const sync_pb::GetUpdateTriggers& proto) { |
| 484 VISIT_REP(notification_hint); | 493 VISIT_REP(notification_hint); |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 VISIT_BYTES(value); | 853 VISIT_BYTES(value); |
| 845 VISIT_BYTES(compressed_value); | 854 VISIT_BYTES(compressed_value); |
| 846 VISIT(uncompressed_length); | 855 VISIT(uncompressed_length); |
| 847 VISIT_BYTES(custom_compressed_v1); | 856 VISIT_BYTES(custom_compressed_v1); |
| 848 } | 857 } |
| 849 | 858 |
| 850 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) { | 859 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) { |
| 851 VISIT(event_time_usec); | 860 VISIT(event_time_usec); |
| 852 VISIT(navigation_id); | 861 VISIT(navigation_id); |
| 853 VISIT(session_id); | 862 VISIT(session_id); |
| 863 VISIT(field_trial_event); |
| 854 } | 864 } |
| 855 | 865 |
| 856 VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) { | 866 VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) { |
| 857 VISIT(id); | 867 VISIT(id); |
| 858 VISIT_ENUM(status); | 868 VISIT_ENUM(status); |
| 859 VISIT(name_on_card); | 869 VISIT(name_on_card); |
| 860 VISIT_ENUM(type); | 870 VISIT_ENUM(type); |
| 861 VISIT(last_four); | 871 VISIT(last_four); |
| 862 VISIT(exp_month); | 872 VISIT(exp_month); |
| 863 VISIT(exp_year); | 873 VISIT(exp_year); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 | 913 |
| 904 } // namespace syncer | 914 } // namespace syncer |
| 905 | 915 |
| 906 #undef VISIT_ | 916 #undef VISIT_ |
| 907 #undef VISIT_BYTES | 917 #undef VISIT_BYTES |
| 908 #undef VISIT_ENUM | 918 #undef VISIT_ENUM |
| 909 #undef VISIT | 919 #undef VISIT |
| 910 #undef VISIT_REP | 920 #undef VISIT_REP |
| 911 | 921 |
| 912 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ | 922 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ |
| OLD | NEW |