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

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

Issue 2781863004: [Sync] Implement EstimateMemoryUsage for SharedModelTypeProcessor and ModelTypeWorker (Closed)
Patch Set: Fix lint errors Created 3 years, 8 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"
11 #include "components/sync/protocol/app_specifics.pb.h" 11 #include "components/sync/protocol/app_specifics.pb.h"
12 #include "components/sync/protocol/arc_package_specifics.pb.h" 12 #include "components/sync/protocol/arc_package_specifics.pb.h"
13 #include "components/sync/protocol/autofill_specifics.pb.h" 13 #include "components/sync/protocol/autofill_specifics.pb.h"
14 #include "components/sync/protocol/bookmark_specifics.pb.h" 14 #include "components/sync/protocol/bookmark_specifics.pb.h"
15 #include "components/sync/protocol/dictionary_specifics.pb.h" 15 #include "components/sync/protocol/dictionary_specifics.pb.h"
16 #include "components/sync/protocol/encryption.pb.h" 16 #include "components/sync/protocol/encryption.pb.h"
17 #include "components/sync/protocol/entity_metadata.pb.h" 17 #include "components/sync/protocol/entity_metadata.pb.h"
18 #include "components/sync/protocol/experiments_specifics.pb.h" 18 #include "components/sync/protocol/experiments_specifics.pb.h"
19 #include "components/sync/protocol/extension_setting_specifics.pb.h" 19 #include "components/sync/protocol/extension_setting_specifics.pb.h"
20 #include "components/sync/protocol/extension_specifics.pb.h" 20 #include "components/sync/protocol/extension_specifics.pb.h"
21 #include "components/sync/protocol/favicon_image_specifics.pb.h" 21 #include "components/sync/protocol/favicon_image_specifics.pb.h"
22 #include "components/sync/protocol/favicon_tracking_specifics.pb.h" 22 #include "components/sync/protocol/favicon_tracking_specifics.pb.h"
23 #include "components/sync/protocol/history_delete_directive_specifics.pb.h" 23 #include "components/sync/protocol/history_delete_directive_specifics.pb.h"
24 #include "components/sync/protocol/model_type_state.pb.h"
24 #include "components/sync/protocol/nigori_specifics.pb.h" 25 #include "components/sync/protocol/nigori_specifics.pb.h"
25 #include "components/sync/protocol/password_specifics.pb.h" 26 #include "components/sync/protocol/password_specifics.pb.h"
26 #include "components/sync/protocol/preference_specifics.pb.h" 27 #include "components/sync/protocol/preference_specifics.pb.h"
27 #include "components/sync/protocol/printer_specifics.pb.h" 28 #include "components/sync/protocol/printer_specifics.pb.h"
28 #include "components/sync/protocol/priority_preference_specifics.pb.h" 29 #include "components/sync/protocol/priority_preference_specifics.pb.h"
29 #include "components/sync/protocol/proto_enum_conversions.h" 30 #include "components/sync/protocol/proto_enum_conversions.h"
30 #include "components/sync/protocol/reading_list_specifics.pb.h" 31 #include "components/sync/protocol/reading_list_specifics.pb.h"
31 #include "components/sync/protocol/search_engine_specifics.pb.h" 32 #include "components/sync/protocol/search_engine_specifics.pb.h"
32 #include "components/sync/protocol/session_specifics.pb.h" 33 #include "components/sync/protocol/session_specifics.pb.h"
33 #include "components/sync/protocol/sync.pb.h" 34 #include "components/sync/protocol/sync.pb.h"
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 853
853 VISIT_PROTO_FIELDS(const sync_pb::AttachmentMetadataRecord& proto) { 854 VISIT_PROTO_FIELDS(const sync_pb::AttachmentMetadataRecord& proto) {
854 VISIT(id); 855 VISIT(id);
855 VISIT(is_on_server); 856 VISIT(is_on_server);
856 } 857 }
857 858
858 VISIT_PROTO_FIELDS(const sync_pb::AttachmentMetadata& proto) { 859 VISIT_PROTO_FIELDS(const sync_pb::AttachmentMetadata& proto) {
859 VISIT_REP(record); 860 VISIT_REP(record);
860 } 861 }
861 862
863 VISIT_PROTO_FIELDS(const sync_pb::ModelTypeState& proto) {
Patrick Noland 2017/03/29 19:42:54 [nit] make this alphabetic order, like you do prot
pavely 2017/03/30 01:07:25 This whole file is not alphabetical. Sorting it wo
864 VISIT(progress_marker);
865 VISIT(type_context);
866 VISIT(encryption_key_name);
867 VISIT(initial_sync_done);
868 }
869
862 VISIT_PROTO_FIELDS(const sync_pb::EntityMetadata& proto) { 870 VISIT_PROTO_FIELDS(const sync_pb::EntityMetadata& proto) {
863 VISIT(client_tag_hash); 871 VISIT(client_tag_hash);
864 VISIT(server_id); 872 VISIT(server_id);
865 VISIT(is_deleted); 873 VISIT(is_deleted);
866 VISIT(sequence_number); 874 VISIT(sequence_number);
867 VISIT(acked_sequence_number); 875 VISIT(acked_sequence_number);
868 VISIT(server_version); 876 VISIT(server_version);
869 VISIT(creation_time); 877 VISIT(creation_time);
870 VISIT(modification_time); 878 VISIT(modification_time);
871 VISIT(specifics_hash); 879 VISIT(specifics_hash);
(...skipping 19 matching lines...) Expand all
891 899
892 } // namespace syncer 900 } // namespace syncer
893 901
894 #undef VISIT_ 902 #undef VISIT_
895 #undef VISIT_BYTES 903 #undef VISIT_BYTES
896 #undef VISIT_ENUM 904 #undef VISIT_ENUM
897 #undef VISIT 905 #undef VISIT
898 #undef VISIT_REP 906 #undef VISIT_REP
899 907
900 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ 908 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698