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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 } | 158 } |
159 | 159 |
160 VISIT_PROTO_FIELDS(const sync_pb::PasswordSpecificsData& proto) { | 160 VISIT_PROTO_FIELDS(const sync_pb::PasswordSpecificsData& proto) { |
161 VISIT(scheme); | 161 VISIT(scheme); |
162 VISIT(signon_realm); | 162 VISIT(signon_realm); |
163 VISIT(origin); | 163 VISIT(origin); |
164 VISIT(action); | 164 VISIT(action); |
165 VISIT(username_element); | 165 VISIT(username_element); |
166 VISIT(username_value); | 166 VISIT(username_value); |
167 VISIT(password_element); | 167 VISIT(password_element); |
| 168 VISIT(password_value); |
168 VISIT(preferred); | 169 VISIT(preferred); |
169 VISIT(date_created); | 170 VISIT(date_created); |
170 VISIT(blacklisted); | 171 VISIT(blacklisted); |
171 VISIT(type); | 172 VISIT(type); |
172 VISIT(times_used); | 173 VISIT(times_used); |
173 VISIT(display_name); | 174 VISIT(display_name); |
174 VISIT(avatar_url); | 175 VISIT(avatar_url); |
175 VISIT(federation_url); | 176 VISIT(federation_url); |
176 } | 177 } |
177 | 178 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 } | 341 } |
341 | 342 |
342 VISIT_PROTO_FIELDS(const sync_pb::GcmChannelFlags& proto) { | 343 VISIT_PROTO_FIELDS(const sync_pb::GcmChannelFlags& proto) { |
343 VISIT(enabled); | 344 VISIT(enabled); |
344 } | 345 } |
345 | 346 |
346 VISIT_PROTO_FIELDS(const sync_pb::GcmInvalidationsFlags& proto) { | 347 VISIT_PROTO_FIELDS(const sync_pb::GcmInvalidationsFlags& proto) { |
347 VISIT(enabled); | 348 VISIT(enabled); |
348 } | 349 } |
349 | 350 |
| 351 VISIT_PROTO_FIELDS(const sync_pb::EnhancedBookmarksFlags& proto) { |
| 352 VISIT(enabled); |
| 353 VISIT(extension_id); |
| 354 } |
| 355 |
| 356 VISIT_PROTO_FIELDS(const sync_pb::WalletSyncFlags& proto) { |
| 357 VISIT(enabled); |
| 358 } |
| 359 |
350 VISIT_PROTO_FIELDS(const sync_pb::ExperimentsSpecifics& proto) { | 360 VISIT_PROTO_FIELDS(const sync_pb::ExperimentsSpecifics& proto) { |
351 VISIT(keystore_encryption); | 361 VISIT(keystore_encryption); |
352 VISIT(history_delete_directives); | 362 VISIT(history_delete_directives); |
353 VISIT(autofill_culling); | 363 VISIT(autofill_culling); |
354 VISIT(pre_commit_update_avoidance); | 364 VISIT(pre_commit_update_avoidance); |
355 VISIT(favicon_sync); | 365 VISIT(favicon_sync); |
356 VISIT(gcm_channel); | 366 VISIT(gcm_channel); |
357 VISIT(gcm_invalidations); | 367 VISIT(gcm_invalidations); |
| 368 VISIT(obsolete_enhanced_bookmarks); |
| 369 VISIT(obsolete_wallet_sync); |
358 } | 370 } |
359 | 371 |
360 VISIT_PROTO_FIELDS(const sync_pb::ExtensionSettingSpecifics& proto) { | 372 VISIT_PROTO_FIELDS(const sync_pb::ExtensionSettingSpecifics& proto) { |
361 VISIT(extension_id); | 373 VISIT(extension_id); |
362 VISIT(key); | 374 VISIT(key); |
363 VISIT(value); | 375 VISIT(value); |
364 } | 376 } |
365 | 377 |
366 VISIT_PROTO_FIELDS(const sync_pb::ExtensionSpecifics& proto) { | 378 VISIT_PROTO_FIELDS(const sync_pb::ExtensionSpecifics& proto) { |
367 VISIT(id); | 379 VISIT(id); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 VISIT(value); | 418 VISIT(value); |
407 } | 419 } |
408 | 420 |
409 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSpecifics& proto) { | 421 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSpecifics& proto) { |
410 VISIT(id); | 422 VISIT(id); |
411 VISIT(name); | 423 VISIT(name); |
412 VISIT(acknowledged); | 424 VISIT(acknowledged); |
413 VISIT(master_key); | 425 VISIT(master_key); |
414 VISIT(chrome_avatar); | 426 VISIT(chrome_avatar); |
415 VISIT(chromeos_avatar); | 427 VISIT(chromeos_avatar); |
| 428 VISIT(password_signature_key); |
| 429 VISIT(password_encryption_key); |
416 } | 430 } |
417 | 431 |
418 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSharedSettingSpecifics& proto) { | 432 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSharedSettingSpecifics& proto) { |
419 VISIT(mu_id); | 433 VISIT(mu_id); |
420 VISIT(key); | 434 VISIT(key); |
421 VISIT(value); | 435 VISIT(value); |
422 VISIT(acknowledged); | 436 VISIT(acknowledged); |
423 } | 437 } |
424 | 438 |
425 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserWhitelistSpecifics& proto) { | 439 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserWhitelistSpecifics& proto) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 } | 471 } |
458 | 472 |
459 VISIT_PROTO_FIELDS(const sync_pb::ArticlePage& proto) { | 473 VISIT_PROTO_FIELDS(const sync_pb::ArticlePage& proto) { |
460 VISIT(url); | 474 VISIT(url); |
461 } | 475 } |
462 | 476 |
463 VISIT_PROTO_FIELDS(const sync_pb::ArticleSpecifics& proto) { | 477 VISIT_PROTO_FIELDS(const sync_pb::ArticleSpecifics& proto) { |
464 VISIT(entry_id); | 478 VISIT(entry_id); |
465 VISIT(title); | 479 VISIT(title); |
466 VISIT_REP(pages); | 480 VISIT_REP(pages); |
| 481 VISIT(attachments); |
| 482 } |
| 483 |
| 484 VISIT_PROTO_FIELDS(const sync_pb::ArticleAttachments& proto) { |
| 485 VISIT(distilled_article); |
467 } | 486 } |
468 | 487 |
469 VISIT_PROTO_FIELDS(const sync_pb::PasswordSpecifics& proto) { | 488 VISIT_PROTO_FIELDS(const sync_pb::PasswordSpecifics& proto) { |
470 VISIT(encrypted); | 489 VISIT(encrypted); |
471 VISIT(unencrypted_metadata); | 490 VISIT(unencrypted_metadata); |
| 491 VISIT(client_only_encrypted_data); |
472 } | 492 } |
473 | 493 |
474 VISIT_PROTO_FIELDS(const sync_pb::PreferenceSpecifics& proto) { | 494 VISIT_PROTO_FIELDS(const sync_pb::PreferenceSpecifics& proto) { |
475 VISIT(name); | 495 VISIT(name); |
476 VISIT(value); | 496 VISIT(value); |
477 } | 497 } |
478 | 498 |
479 VISIT_PROTO_FIELDS(const sync_pb::PrinterSpecifics& proto) { | 499 VISIT_PROTO_FIELDS(const sync_pb::PrinterSpecifics& proto) { |
480 VISIT(id); | 500 VISIT(id); |
481 VISIT(display_name); | 501 VISIT(display_name); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 VISIT(language_code); | 590 VISIT(language_code); |
571 } | 591 } |
572 | 592 |
573 VISIT_PROTO_FIELDS(const sync_pb::WifiCredentialSpecifics& proto) { | 593 VISIT_PROTO_FIELDS(const sync_pb::WifiCredentialSpecifics& proto) { |
574 VISIT_BYTES(ssid); | 594 VISIT_BYTES(ssid); |
575 VISIT_ENUM(security_class); | 595 VISIT_ENUM(security_class); |
576 VISIT_BYTES(passphrase); | 596 VISIT_BYTES(passphrase); |
577 } | 597 } |
578 | 598 |
579 VISIT_PROTO_FIELDS(const sync_pb::EntitySpecifics& proto) { | 599 VISIT_PROTO_FIELDS(const sync_pb::EntitySpecifics& proto) { |
| 600 VISIT(encrypted); |
580 VISIT(app); | 601 VISIT(app); |
581 VISIT(app_list); | 602 VISIT(app_list); |
582 VISIT(app_notification); | 603 VISIT(app_notification); |
583 VISIT(app_setting); | 604 VISIT(app_setting); |
584 VISIT(arc_package); | 605 VISIT(arc_package); |
585 VISIT(article); | 606 VISIT(article); |
586 VISIT(autofill); | 607 VISIT(autofill); |
587 VISIT(autofill_profile); | 608 VISIT(autofill_profile); |
588 VISIT(autofill_wallet); | 609 VISIT(autofill_wallet); |
589 VISIT(wallet_metadata); | 610 VISIT(wallet_metadata); |
(...skipping 18 matching lines...) Expand all Loading... |
608 VISIT(reading_list); | 629 VISIT(reading_list); |
609 VISIT(search_engine); | 630 VISIT(search_engine); |
610 VISIT(session); | 631 VISIT(session); |
611 VISIT(synced_notification); | 632 VISIT(synced_notification); |
612 VISIT(synced_notification_app_info); | 633 VISIT(synced_notification_app_info); |
613 VISIT(theme); | 634 VISIT(theme); |
614 VISIT(typed_url); | 635 VISIT(typed_url); |
615 VISIT(wifi_credential); | 636 VISIT(wifi_credential); |
616 } | 637 } |
617 | 638 |
| 639 VISIT_PROTO_FIELDS(const sync_pb::SyncEntity::BookmarkData& proto) { |
| 640 VISIT(bookmark_folder); |
| 641 VISIT(bookmark_url); |
| 642 VISIT(bookmark_favicon); |
| 643 } |
| 644 |
618 VISIT_PROTO_FIELDS(const sync_pb::SyncEntity& proto) { | 645 VISIT_PROTO_FIELDS(const sync_pb::SyncEntity& proto) { |
619 VISIT(id_string); | 646 VISIT(id_string); |
620 VISIT(parent_id_string); | 647 VISIT(parent_id_string); |
621 VISIT(old_parent_id); | 648 VISIT(old_parent_id); |
622 VISIT(version); | 649 VISIT(version); |
623 VISIT(mtime); | 650 VISIT(mtime); |
624 VISIT(ctime); | 651 VISIT(ctime); |
625 VISIT(name); | 652 VISIT(name); |
626 VISIT(non_unique_name); | 653 VISIT(non_unique_name); |
627 VISIT(sync_timestamp); | 654 VISIT(sync_timestamp); |
628 VISIT(server_defined_unique_tag); | 655 VISIT(server_defined_unique_tag); |
629 VISIT(position_in_parent); | 656 VISIT(position_in_parent); |
630 VISIT(unique_position); | 657 VISIT(unique_position); |
631 VISIT(insert_after_item_id); | 658 VISIT(insert_after_item_id); |
632 VISIT(deleted); | 659 VISIT(deleted); |
633 VISIT(originator_cache_guid); | 660 VISIT(originator_cache_guid); |
634 VISIT(originator_client_item_id); | 661 VISIT(originator_client_item_id); |
635 VISIT(specifics); | 662 VISIT(specifics); |
636 VISIT(folder); | 663 VISIT(folder); |
637 VISIT(client_defined_unique_tag); | 664 VISIT(client_defined_unique_tag); |
638 VISIT_REP(attachment_id); | 665 VISIT_REP(attachment_id); |
| 666 VISIT_BYTES(ordinal_in_parent); |
| 667 VISIT(bookmarkdata); |
639 } | 668 } |
640 | 669 |
641 VISIT_PROTO_FIELDS(const sync_pb::ChromiumExtensionsActivity& proto) { | 670 VISIT_PROTO_FIELDS(const sync_pb::ChromiumExtensionsActivity& proto) { |
642 VISIT(extension_id); | 671 VISIT(extension_id); |
643 VISIT(bookmark_writes_since_last_commit); | 672 VISIT(bookmark_writes_since_last_commit); |
644 } | 673 } |
645 | 674 |
646 VISIT_PROTO_FIELDS(const sync_pb::CommitMessage& proto) { | 675 VISIT_PROTO_FIELDS(const sync_pb::CommitMessage& proto) { |
647 VISIT_REP(entries); | 676 VISIT_REP(entries); |
648 VISIT(cache_guid); | 677 VISIT(cache_guid); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 VISIT(num_sync_items_added); | 794 VISIT(num_sync_items_added); |
766 VISIT(num_sync_items_deleted); | 795 VISIT(num_sync_items_deleted); |
767 VISIT(num_sync_items_modified); | 796 VISIT(num_sync_items_modified); |
768 VISIT(local_version_pre_association); | 797 VISIT(local_version_pre_association); |
769 VISIT(sync_version_pre_association); | 798 VISIT(sync_version_pre_association); |
770 VISIT(had_error); | 799 VISIT(had_error); |
771 VISIT(download_wait_time_us); | 800 VISIT(download_wait_time_us); |
772 VISIT(download_time_us); | 801 VISIT(download_time_us); |
773 VISIT(association_wait_time_for_high_priority_us); | 802 VISIT(association_wait_time_for_high_priority_us); |
774 VISIT(association_wait_time_for_same_priority_us); | 803 VISIT(association_wait_time_for_same_priority_us); |
| 804 VISIT_REP(high_priority_type_configured_before); |
| 805 VISIT_REP(same_priority_type_configured_before); |
775 } | 806 } |
776 | 807 |
777 VISIT_PROTO_FIELDS(const sync_pb::DebugEventInfo& proto) { | 808 VISIT_PROTO_FIELDS(const sync_pb::DebugEventInfo& proto) { |
778 VISIT_ENUM(singleton_event); | 809 VISIT_ENUM(singleton_event); |
779 VISIT(sync_cycle_completed_event_info); | 810 VISIT(sync_cycle_completed_event_info); |
780 VISIT(nudging_datatype); | 811 VISIT(nudging_datatype); |
781 VISIT_REP(datatypes_notified_from_server); | 812 VISIT_REP(datatypes_notified_from_server); |
782 VISIT(datatype_association_stats); | 813 VISIT(datatype_association_stats); |
783 } | 814 } |
784 | 815 |
785 VISIT_PROTO_FIELDS(const sync_pb::DebugInfo& proto) { | 816 VISIT_PROTO_FIELDS(const sync_pb::DebugInfo& proto) { |
786 VISIT_REP(events); | 817 VISIT_REP(events); |
787 VISIT(cryptographer_ready); | 818 VISIT(cryptographer_ready); |
788 VISIT(cryptographer_has_pending_keys); | 819 VISIT(cryptographer_has_pending_keys); |
789 VISIT(events_dropped); | 820 VISIT(events_dropped); |
790 } | 821 } |
791 | 822 |
792 VISIT_PROTO_FIELDS(const sync_pb::SyncCycleCompletedEventInfo& proto) { | 823 VISIT_PROTO_FIELDS(const sync_pb::SyncCycleCompletedEventInfo& proto) { |
793 VISIT(num_encryption_conflicts); | 824 VISIT(num_encryption_conflicts); |
794 VISIT(num_hierarchy_conflicts); | 825 VISIT(num_hierarchy_conflicts); |
795 VISIT(num_server_conflicts); | 826 VISIT(num_server_conflicts); |
796 VISIT(num_updates_downloaded); | 827 VISIT(num_updates_downloaded); |
797 VISIT(num_reflected_updates_downloaded); | 828 VISIT(num_reflected_updates_downloaded); |
798 VISIT(caller_info); | 829 VISIT(caller_info); |
| 830 VISIT_REP(source_info); |
799 } | 831 } |
800 | 832 |
801 VISIT_PROTO_FIELDS(const sync_pb::ClientConfigParams& proto) { | 833 VISIT_PROTO_FIELDS(const sync_pb::ClientConfigParams& proto) { |
802 VISIT_REP(enabled_type_ids); | 834 VISIT_REP(enabled_type_ids); |
803 VISIT(tabs_datatype_enabled); | 835 VISIT(tabs_datatype_enabled); |
804 VISIT(cookie_jar_mismatch); | 836 VISIT(cookie_jar_mismatch); |
805 } | 837 } |
806 | 838 |
807 VISIT_PROTO_FIELDS(const sync_pb::AttachmentIdProto& proto) { | 839 VISIT_PROTO_FIELDS(const sync_pb::AttachmentIdProto& proto) { |
808 VISIT(unique_id); | 840 VISIT(unique_id); |
809 } | 841 } |
810 | 842 |
| 843 VISIT_PROTO_FIELDS(const sync_pb::AttachmentMetadataRecord& proto) { |
| 844 VISIT(id); |
| 845 VISIT(is_on_server); |
| 846 } |
| 847 |
| 848 VISIT_PROTO_FIELDS(const sync_pb::AttachmentMetadata& proto) { |
| 849 VISIT_REP(record); |
| 850 } |
| 851 |
811 VISIT_PROTO_FIELDS(const sync_pb::EntityMetadata& proto) { | 852 VISIT_PROTO_FIELDS(const sync_pb::EntityMetadata& proto) { |
812 VISIT(client_tag_hash); | 853 VISIT(client_tag_hash); |
813 VISIT(server_id); | 854 VISIT(server_id); |
814 VISIT(is_deleted); | 855 VISIT(is_deleted); |
815 VISIT(sequence_number); | 856 VISIT(sequence_number); |
816 VISIT(acked_sequence_number); | 857 VISIT(acked_sequence_number); |
817 VISIT(server_version); | 858 VISIT(server_version); |
818 VISIT(creation_time); | 859 VISIT(creation_time); |
819 VISIT(modification_time); | 860 VISIT(modification_time); |
820 VISIT(specifics_hash); | 861 VISIT(specifics_hash); |
821 VISIT(base_specifics_hash); | 862 VISIT(base_specifics_hash); |
822 } | 863 } |
823 | 864 |
| 865 VISIT_PROTO_FIELDS(const sync_pb::UniquePosition& proto) { |
| 866 VISIT_BYTES(value); |
| 867 VISIT_BYTES(compressed_value); |
| 868 VISIT(uncompressed_length); |
| 869 VISIT_BYTES(custom_compressed_v1); |
| 870 } |
| 871 |
| 872 VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) { |
| 873 VISIT(data_type_id); |
| 874 VISIT(has_valid_hint); |
| 875 } |
| 876 |
| 877 VISIT_PROTO_FIELDS(const sync_pb::SourceInfo& proto) { |
| 878 VISIT_ENUM(source); |
| 879 VISIT_REP(type_hint); |
| 880 } |
| 881 |
824 } // namespace syncer | 882 } // namespace syncer |
825 | 883 |
826 #undef VISIT_ | 884 #undef VISIT_ |
827 #undef VISIT_BYTES | 885 #undef VISIT_BYTES |
828 #undef VISIT_ENUM | 886 #undef VISIT_ENUM |
829 #undef VISIT | 887 #undef VISIT |
830 #undef VISIT_REP | 888 #undef VISIT_REP |
831 | 889 |
832 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ | 890 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ |
OLD | NEW |