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::FieldTrial::FieldTrialPair& proto) { | 475 VISIT_PROTO_FIELDS( |
| 476 const sync_pb::UserEventSpecifics::FieldTrial::FieldTrialPair& proto) { |
476 VISIT(name_id); | 477 VISIT(name_id); |
477 VISIT(group_id); | 478 VISIT(group_id); |
478 } | 479 } |
479 | 480 |
480 VISIT_PROTO_FIELDS(const sync_pb::FieldTrial& proto) { | 481 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics::FieldTrial& proto) { |
481 VISIT_REP(field_trial_pairs); | 482 VISIT_REP(field_trial_pairs); |
482 } | 483 } |
483 | 484 |
484 VISIT_PROTO_FIELDS(const sync_pb::GcmChannelFlags& proto) { | 485 VISIT_PROTO_FIELDS(const sync_pb::GcmChannelFlags& proto) { |
485 VISIT(enabled); | 486 VISIT(enabled); |
486 } | 487 } |
487 | 488 |
488 VISIT_PROTO_FIELDS(const sync_pb::GcmInvalidationsFlags& proto) { | 489 VISIT_PROTO_FIELDS(const sync_pb::GcmInvalidationsFlags& proto) { |
489 VISIT(enabled); | 490 VISIT(enabled); |
490 } | 491 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 } | 534 } |
534 | 535 |
535 VISIT_PROTO_FIELDS(const sync_pb::HistoryDeleteDirectives& proto) { | 536 VISIT_PROTO_FIELDS(const sync_pb::HistoryDeleteDirectives& proto) { |
536 VISIT(enabled); | 537 VISIT(enabled); |
537 } | 538 } |
538 | 539 |
539 VISIT_PROTO_FIELDS(const sync_pb::KeystoreEncryptionFlags& proto) { | 540 VISIT_PROTO_FIELDS(const sync_pb::KeystoreEncryptionFlags& proto) { |
540 VISIT(enabled); | 541 VISIT(enabled); |
541 } | 542 } |
542 | 543 |
543 VISIT_PROTO_FIELDS(const sync_pb::LanguageDetection::Language& proto) { | 544 VISIT_PROTO_FIELDS( |
| 545 const sync_pb::UserEventSpecifics::LanguageDetection::Language& proto) { |
544 VISIT(language_code); | 546 VISIT(language_code); |
545 VISIT(is_reliable); | 547 VISIT(is_reliable); |
546 } | 548 } |
547 | 549 |
548 VISIT_PROTO_FIELDS(const sync_pb::LanguageDetection& proto) { | 550 VISIT_PROTO_FIELDS( |
| 551 const sync_pb::UserEventSpecifics::LanguageDetection& proto) { |
549 VISIT_REP(detected_languages); | 552 VISIT_REP(detected_languages); |
550 VISIT(adopted_language_code); | 553 VISIT(adopted_language_code); |
551 } | 554 } |
552 | 555 |
553 VISIT_PROTO_FIELDS(const sync_pb::LinkedAppIconInfo& proto) { | 556 VISIT_PROTO_FIELDS(const sync_pb::LinkedAppIconInfo& proto) { |
554 VISIT(url); | 557 VISIT(url); |
555 VISIT(size); | 558 VISIT(size); |
556 } | 559 } |
557 | 560 |
558 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSettingSpecifics& proto) { | 561 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSettingSpecifics& proto) { |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 VISIT(custom_theme_name); | 843 VISIT(custom_theme_name); |
841 VISIT(custom_theme_id); | 844 VISIT(custom_theme_id); |
842 VISIT(custom_theme_update_url); | 845 VISIT(custom_theme_update_url); |
843 } | 846 } |
844 | 847 |
845 VISIT_PROTO_FIELDS(const sync_pb::TimeRangeDirective& proto) { | 848 VISIT_PROTO_FIELDS(const sync_pb::TimeRangeDirective& proto) { |
846 VISIT(start_time_usec); | 849 VISIT(start_time_usec); |
847 VISIT(end_time_usec); | 850 VISIT(end_time_usec); |
848 } | 851 } |
849 | 852 |
850 VISIT_PROTO_FIELDS(const sync_pb::Translation& proto) { | 853 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics::Translation& proto) { |
851 VISIT(from_language_code); | 854 VISIT(from_language_code); |
852 VISIT(to_language_code); | 855 VISIT(to_language_code); |
853 VISIT_ENUM(interaction); | 856 VISIT_ENUM(interaction); |
854 } | 857 } |
855 | 858 |
856 VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) { | 859 VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) { |
857 VISIT(data_type_id); | 860 VISIT(data_type_id); |
858 VISIT(has_valid_hint); | 861 VISIT(has_valid_hint); |
859 } | 862 } |
860 | 863 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 | 938 |
936 } // namespace syncer | 939 } // namespace syncer |
937 | 940 |
938 #undef VISIT_ | 941 #undef VISIT_ |
939 #undef VISIT_BYTES | 942 #undef VISIT_BYTES |
940 #undef VISIT_ENUM | 943 #undef VISIT_ENUM |
941 #undef VISIT | 944 #undef VISIT |
942 #undef VISIT_REP | 945 #undef VISIT_REP |
943 | 946 |
944 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ | 947 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ |
OLD | NEW |