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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 visitor.Visit(proto, #field, proto.field()); | 78 visitor.Visit(proto, #field, proto.field()); |
79 | 79 |
80 // NOLINT(runtime/references) is necessary to avoid a presubmit warning about | 80 // NOLINT(runtime/references) is necessary to avoid a presubmit warning about |
81 // V& not being const. | 81 // V& not being const. |
82 #define VISIT_PROTO_FIELDS(proto) \ | 82 #define VISIT_PROTO_FIELDS(proto) \ |
83 template <class V> \ | 83 template <class V> \ |
84 void VisitProtoFields(V& visitor, proto) // NOLINT(runtime/references) | 84 void VisitProtoFields(V& visitor, proto) // NOLINT(runtime/references) |
85 | 85 |
86 namespace syncer { | 86 namespace syncer { |
87 | 87 |
88 VISIT_PROTO_FIELDS(const sync_pb::EncryptedData& proto) { | |
89 VISIT(key_name); | |
90 // TODO(akalin): Shouldn't blob be of type bytes instead of string? | |
91 VISIT_BYTES(blob); | |
92 } | |
93 | |
94 VISIT_PROTO_FIELDS(const sync_pb::PasswordSpecificsMetadata& proto) { | |
95 VISIT(url); | |
96 } | |
97 | |
98 VISIT_PROTO_FIELDS(const sync_pb::AppNotificationSettings& proto) { | |
99 VISIT(initial_setup_done); | |
100 VISIT(disabled); | |
101 VISIT(oauth_client_id); | |
102 } | |
103 | |
104 VISIT_PROTO_FIELDS(const sync_pb::SessionHeader& proto) { | |
105 VISIT_REP(window); | |
106 VISIT(client_name); | |
107 VISIT_ENUM(device_type); | |
108 } | |
109 | |
110 VISIT_PROTO_FIELDS(const sync_pb::SessionTab& proto) { | |
111 VISIT(tab_id); | |
112 VISIT(window_id); | |
113 VISIT(tab_visual_index); | |
114 VISIT(current_navigation_index); | |
115 VISIT(pinned); | |
116 VISIT(extension_app_id); | |
117 VISIT_REP(navigation); | |
118 VISIT_BYTES(favicon); | |
119 VISIT_ENUM(favicon_type); | |
120 VISIT(favicon_source); | |
121 VISIT_REP(variation_id); | |
122 } | |
123 | |
124 VISIT_PROTO_FIELDS(const sync_pb::SessionWindow& proto) { | |
125 VISIT(window_id); | |
126 VISIT(selected_tab_index); | |
127 VISIT_REP(tab); | |
128 VISIT_ENUM(browser_type); | |
129 } | |
130 | |
131 VISIT_PROTO_FIELDS(const sync_pb::TabNavigation& proto) { | |
132 VISIT(virtual_url); | |
133 VISIT(referrer); | |
134 VISIT(title); | |
135 VISIT_ENUM(page_transition); | |
136 VISIT_ENUM(redirect_type); | |
137 VISIT(unique_id); | |
138 VISIT(timestamp_msec); | |
139 VISIT(navigation_forward_back); | |
140 VISIT(navigation_from_address_bar); | |
141 VISIT(navigation_home_page); | |
142 VISIT(navigation_chain_start); | |
143 VISIT(navigation_chain_end); | |
144 VISIT(global_id); | |
145 VISIT(search_terms); | |
146 VISIT(favicon_url); | |
147 VISIT_ENUM(blocked_state); | |
148 VISIT_REP(content_pack_categories); | |
149 VISIT(http_status_code); | |
150 VISIT(obsolete_referrer_policy); | |
151 VISIT(is_restored); | |
152 VISIT_REP(navigation_redirect); | |
153 VISIT(last_navigation_redirect_url); | |
154 VISIT(correct_referrer_policy); | |
155 VISIT_ENUM(password_state); | |
156 } | |
157 | |
158 VISIT_PROTO_FIELDS(const sync_pb::NavigationRedirect& proto) { | |
159 VISIT(url); | |
160 } | |
161 | |
162 VISIT_PROTO_FIELDS(const sync_pb::PasswordSpecificsData& proto) { | |
163 VISIT(scheme); | |
164 VISIT(signon_realm); | |
165 VISIT(origin); | |
166 VISIT(action); | |
167 VISIT(username_element); | |
168 VISIT(username_value); | |
169 VISIT(password_element); | |
170 VISIT(password_value); | |
171 VISIT(preferred); | |
172 VISIT(date_created); | |
173 VISIT(blacklisted); | |
174 VISIT(type); | |
175 VISIT(times_used); | |
176 VISIT(display_name); | |
177 VISIT(avatar_url); | |
178 VISIT(federation_url); | |
179 } | |
180 | |
181 VISIT_PROTO_FIELDS(const sync_pb::GlobalIdDirective& proto) { | |
182 VISIT_REP(global_id); | |
183 VISIT(start_time_usec); | |
184 VISIT(end_time_usec); | |
185 } | |
186 | |
187 VISIT_PROTO_FIELDS(const sync_pb::TimeRangeDirective& proto) { | |
188 VISIT(start_time_usec); | |
189 VISIT(end_time_usec); | |
190 } | |
191 | |
192 VISIT_PROTO_FIELDS(const sync_pb::AppListSpecifics& proto) { | 88 VISIT_PROTO_FIELDS(const sync_pb::AppListSpecifics& proto) { |
193 VISIT(item_id); | 89 VISIT(item_id); |
194 VISIT_ENUM(item_type); | 90 VISIT_ENUM(item_type); |
195 VISIT(item_name); | 91 VISIT(item_name); |
196 VISIT(parent_id); | 92 VISIT(parent_id); |
197 VISIT(item_ordinal); | 93 VISIT(item_ordinal); |
198 VISIT(item_pin_ordinal); | 94 VISIT(item_pin_ordinal); |
199 } | 95 } |
200 | 96 |
201 VISIT_PROTO_FIELDS(const sync_pb::ArcPackageSpecifics& proto) { | |
202 VISIT(package_name); | |
203 VISIT(package_version); | |
204 VISIT(last_backup_android_id); | |
205 VISIT(last_backup_time); | |
206 } | |
207 | |
208 VISIT_PROTO_FIELDS(const sync_pb::PrinterPPDReference& proto) { | |
209 VISIT(user_supplied_ppd_url); | |
210 VISIT(effective_make_and_model); | |
211 } | |
212 | |
213 VISIT_PROTO_FIELDS(const sync_pb::ReadingListSpecifics& proto) { | |
214 VISIT(entry_id); | |
215 VISIT(title); | |
216 VISIT(url); | |
217 VISIT(creation_time_us); | |
218 VISIT(update_time_us); | |
219 VISIT_ENUM(status); | |
220 } | |
221 | |
222 VISIT_PROTO_FIELDS(const sync_pb::AppNotification& proto) { | 97 VISIT_PROTO_FIELDS(const sync_pb::AppNotification& proto) { |
223 VISIT(guid); | 98 VISIT(guid); |
224 VISIT(app_id); | 99 VISIT(app_id); |
225 VISIT(creation_timestamp_ms); | 100 VISIT(creation_timestamp_ms); |
226 VISIT(title); | 101 VISIT(title); |
227 VISIT(body_text); | 102 VISIT(body_text); |
228 VISIT(link_url); | 103 VISIT(link_url); |
229 VISIT(link_text); | 104 VISIT(link_text); |
230 } | 105 } |
231 | 106 |
107 VISIT_PROTO_FIELDS(const sync_pb::AppNotificationSettings& proto) { | |
108 VISIT(initial_setup_done); | |
109 VISIT(disabled); | |
110 VISIT(oauth_client_id); | |
111 } | |
112 | |
232 VISIT_PROTO_FIELDS(const sync_pb::AppSettingSpecifics& proto) { | 113 VISIT_PROTO_FIELDS(const sync_pb::AppSettingSpecifics& proto) { |
233 VISIT(extension_setting); | 114 VISIT(extension_setting); |
234 } | 115 } |
235 | 116 |
236 VISIT_PROTO_FIELDS(const sync_pb::LinkedAppIconInfo& proto) { | |
237 VISIT(url); | |
238 VISIT(size); | |
239 } | |
240 | |
241 VISIT_PROTO_FIELDS(const sync_pb::AppSpecifics& proto) { | 117 VISIT_PROTO_FIELDS(const sync_pb::AppSpecifics& proto) { |
242 VISIT(extension); | 118 VISIT(extension); |
243 VISIT(notification_settings); | 119 VISIT(notification_settings); |
244 VISIT(app_launch_ordinal); | 120 VISIT(app_launch_ordinal); |
245 VISIT(page_ordinal); | 121 VISIT(page_ordinal); |
246 VISIT_ENUM(launch_type); | 122 VISIT_ENUM(launch_type); |
247 VISIT(bookmark_app_url); | 123 VISIT(bookmark_app_url); |
248 VISIT(bookmark_app_description); | 124 VISIT(bookmark_app_description); |
249 VISIT(bookmark_app_icon_color); | 125 VISIT(bookmark_app_icon_color); |
250 VISIT_REP(linked_app_icons); | 126 VISIT_REP(linked_app_icons); |
251 } | 127 } |
252 | 128 |
253 VISIT_PROTO_FIELDS(const sync_pb::AutofillSpecifics& proto) { | 129 VISIT_PROTO_FIELDS(const sync_pb::ArcPackageSpecifics& proto) { |
254 VISIT(name); | 130 VISIT(package_name); |
255 VISIT(value); | 131 VISIT(package_version); |
256 VISIT_REP(usage_timestamp); | 132 VISIT(last_backup_android_id); |
257 VISIT(profile); | 133 VISIT(last_backup_time); |
134 } | |
135 | |
136 VISIT_PROTO_FIELDS(const sync_pb::ArticleAttachments& proto) { | |
137 VISIT(distilled_article); | |
138 } | |
139 | |
140 VISIT_PROTO_FIELDS(const sync_pb::ArticlePage& proto) { | |
141 VISIT(url); | |
142 } | |
143 | |
144 VISIT_PROTO_FIELDS(const sync_pb::ArticleSpecifics& proto) { | |
145 VISIT(entry_id); | |
146 VISIT(title); | |
147 VISIT_REP(pages); | |
148 VISIT(attachments); | |
149 } | |
150 | |
151 VISIT_PROTO_FIELDS(const sync_pb::AttachmentIdProto& proto) { | |
152 VISIT(unique_id); | |
153 } | |
154 | |
155 VISIT_PROTO_FIELDS(const sync_pb::AttachmentMetadata& proto) { | |
156 VISIT_REP(record); | |
157 } | |
158 | |
159 VISIT_PROTO_FIELDS(const sync_pb::AttachmentMetadataRecord& proto) { | |
160 VISIT(id); | |
161 VISIT(is_on_server); | |
162 } | |
163 | |
164 VISIT_PROTO_FIELDS(const sync_pb::AutofillCullingFlags& proto) { | |
165 VISIT(enabled); | |
258 } | 166 } |
259 | 167 |
260 VISIT_PROTO_FIELDS(const sync_pb::AutofillProfileSpecifics& proto) { | 168 VISIT_PROTO_FIELDS(const sync_pb::AutofillProfileSpecifics& proto) { |
261 VISIT(guid); | 169 VISIT(guid); |
262 VISIT(origin); | 170 VISIT(origin); |
263 VISIT(use_count); | 171 VISIT(use_count); |
264 VISIT(use_date); | 172 VISIT(use_date); |
265 VISIT_REP(name_first); | 173 VISIT_REP(name_first); |
266 VISIT_REP(name_middle); | 174 VISIT_REP(name_middle); |
267 VISIT_REP(name_last); | 175 VISIT_REP(name_last); |
268 VISIT_REP(name_full); | 176 VISIT_REP(name_full); |
269 VISIT_REP(email_address); | 177 VISIT_REP(email_address); |
270 VISIT(company_name); | 178 VISIT(company_name); |
271 VISIT(address_home_line1); | 179 VISIT(address_home_line1); |
272 VISIT(address_home_line2); | 180 VISIT(address_home_line2); |
273 VISIT(address_home_city); | 181 VISIT(address_home_city); |
274 VISIT(address_home_state); | 182 VISIT(address_home_state); |
275 VISIT(address_home_zip); | 183 VISIT(address_home_zip); |
276 VISIT(address_home_country); | 184 VISIT(address_home_country); |
277 VISIT(address_home_street_address); | 185 VISIT(address_home_street_address); |
278 VISIT(address_home_sorting_code); | 186 VISIT(address_home_sorting_code); |
279 VISIT(address_home_dependent_locality); | 187 VISIT(address_home_dependent_locality); |
280 VISIT(address_home_language_code); | 188 VISIT(address_home_language_code); |
281 VISIT_REP(phone_home_whole_number); | 189 VISIT_REP(phone_home_whole_number); |
282 } | 190 } |
283 | 191 |
284 VISIT_PROTO_FIELDS(const sync_pb::WalletMetadataSpecifics& proto) { | 192 VISIT_PROTO_FIELDS(const sync_pb::AutofillSpecifics& proto) { |
285 VISIT_ENUM(type); | 193 VISIT(name); |
286 VISIT(id); | 194 VISIT(value); |
287 VISIT(use_count); | 195 VISIT_REP(usage_timestamp); |
288 VISIT(use_date); | 196 VISIT(profile); |
289 VISIT(card_billing_address_id); | |
290 VISIT(address_has_converted); | |
291 } | 197 } |
292 | 198 |
293 VISIT_PROTO_FIELDS(const sync_pb::AutofillWalletSpecifics& proto) { | 199 VISIT_PROTO_FIELDS(const sync_pb::AutofillWalletSpecifics& proto) { |
294 VISIT_ENUM(type); | 200 VISIT_ENUM(type); |
295 VISIT(masked_card); | 201 VISIT(masked_card); |
296 VISIT(address); | 202 VISIT(address); |
297 } | 203 } |
298 | 204 |
299 VISIT_PROTO_FIELDS(const sync_pb::MetaInfo& proto) { | |
300 VISIT(key); | |
301 VISIT(value); | |
302 } | |
303 | |
304 VISIT_PROTO_FIELDS(const sync_pb::BookmarkSpecifics& proto) { | 205 VISIT_PROTO_FIELDS(const sync_pb::BookmarkSpecifics& proto) { |
305 VISIT(url); | 206 VISIT(url); |
306 VISIT_BYTES(favicon); | 207 VISIT_BYTES(favicon); |
307 VISIT(title); | 208 VISIT(title); |
308 VISIT(creation_time_us); | 209 VISIT(creation_time_us); |
309 VISIT(icon_url); | 210 VISIT(icon_url); |
310 VISIT_REP(meta_info); | 211 VISIT_REP(meta_info); |
311 } | 212 } |
312 | 213 |
214 VISIT_PROTO_FIELDS(const sync_pb::ChromiumExtensionsActivity& proto) { | |
215 VISIT(extension_id); | |
216 VISIT(bookmark_writes_since_last_commit); | |
217 } | |
218 | |
219 VISIT_PROTO_FIELDS(const sync_pb::ClientCommand& proto) { | |
220 VISIT(set_sync_poll_interval); | |
221 VISIT(set_sync_long_poll_interval); | |
222 VISIT(max_commit_batch_size); | |
223 VISIT(sessions_commit_delay_seconds); | |
224 VISIT(throttle_delay_seconds); | |
225 VISIT(client_invalidation_hint_buffer_size); | |
226 } | |
227 | |
228 VISIT_PROTO_FIELDS(const sync_pb::ClientConfigParams& proto) { | |
229 VISIT_REP(enabled_type_ids); | |
230 VISIT(tabs_datatype_enabled); | |
231 VISIT(cookie_jar_mismatch); | |
232 } | |
233 | |
234 VISIT_PROTO_FIELDS(const sync_pb::ClientStatus& proto) { | |
235 VISIT(hierarchy_conflict_detected); | |
236 } | |
237 | |
238 VISIT_PROTO_FIELDS(const sync_pb::ClientToServerMessage& proto) { | |
239 VISIT(share); | |
240 VISIT(protocol_version); | |
241 VISIT(commit); | |
242 VISIT(get_updates); | |
243 VISIT(store_birthday); | |
244 VISIT(sync_problem_detected); | |
245 VISIT(debug_info); | |
246 VISIT(client_status); | |
247 } | |
248 | |
249 VISIT_PROTO_FIELDS(const sync_pb::ClientToServerResponse& proto) { | |
250 VISIT(commit); | |
251 VISIT(get_updates); | |
252 VISIT(error); | |
253 VISIT_ENUM(error_code); | |
254 VISIT(error_message); | |
255 VISIT(store_birthday); | |
256 VISIT(client_command); | |
257 VISIT_REP(migrated_data_type_id); | |
258 } | |
259 | |
260 VISIT_PROTO_FIELDS(const sync_pb::ClientToServerResponse::Error& proto) { | |
261 VISIT_ENUM(error_type); | |
262 VISIT(error_description); | |
263 VISIT(url); | |
264 VISIT_ENUM(action); | |
265 } | |
266 | |
267 VISIT_PROTO_FIELDS(const sync_pb::CommitMessage& proto) { | |
268 VISIT_REP(entries); | |
269 VISIT(cache_guid); | |
270 VISIT_REP(extensions_activity); | |
271 VISIT(config_params); | |
272 } | |
273 | |
274 VISIT_PROTO_FIELDS(const sync_pb::CommitResponse& proto) { | |
275 VISIT_REP(entryresponse); | |
276 } | |
277 | |
278 VISIT_PROTO_FIELDS(const sync_pb::CommitResponse::EntryResponse& proto) { | |
279 VISIT_ENUM(response_type); | |
280 VISIT(id_string); | |
281 VISIT(parent_id_string); | |
282 VISIT(position_in_parent); | |
283 VISIT(version); | |
284 VISIT(name); | |
285 VISIT(error_message); | |
286 VISIT(mtime); | |
287 } | |
288 | |
289 VISIT_PROTO_FIELDS(const sync_pb::DataTypeContext& proto) { | |
290 VISIT(data_type_id); | |
291 VISIT(context); | |
292 VISIT(version); | |
293 } | |
294 | |
295 VISIT_PROTO_FIELDS(const sync_pb::DataTypeProgressMarker& proto) { | |
296 VISIT(data_type_id); | |
297 VISIT_BYTES(token); | |
298 VISIT(timestamp_token_for_migration); | |
299 VISIT(notification_hint); | |
300 VISIT(get_update_triggers); | |
301 } | |
302 | |
303 VISIT_PROTO_FIELDS(const sync_pb::DatatypeAssociationStats& proto) { | |
304 VISIT(data_type_id); | |
305 VISIT(num_local_items_before_association); | |
306 VISIT(num_sync_items_before_association); | |
307 VISIT(num_local_items_after_association); | |
308 VISIT(num_sync_items_after_association); | |
309 VISIT(num_local_items_added); | |
310 VISIT(num_local_items_deleted); | |
311 VISIT(num_local_items_modified); | |
312 VISIT(num_sync_items_added); | |
313 VISIT(num_sync_items_deleted); | |
314 VISIT(num_sync_items_modified); | |
315 VISIT(local_version_pre_association); | |
316 VISIT(sync_version_pre_association); | |
317 VISIT(had_error); | |
318 VISIT(download_wait_time_us); | |
319 VISIT(download_time_us); | |
320 VISIT(association_wait_time_for_high_priority_us); | |
321 VISIT(association_wait_time_for_same_priority_us); | |
322 VISIT_REP(high_priority_type_configured_before); | |
323 VISIT_REP(same_priority_type_configured_before); | |
324 } | |
325 | |
326 VISIT_PROTO_FIELDS(const sync_pb::DebugEventInfo& proto) { | |
327 VISIT_ENUM(singleton_event); | |
328 VISIT(sync_cycle_completed_event_info); | |
329 VISIT(nudging_datatype); | |
330 VISIT_REP(datatypes_notified_from_server); | |
331 VISIT(datatype_association_stats); | |
332 } | |
333 | |
334 VISIT_PROTO_FIELDS(const sync_pb::DebugInfo& proto) { | |
335 VISIT_REP(events); | |
336 VISIT(cryptographer_ready); | |
337 VISIT(cryptographer_has_pending_keys); | |
338 VISIT(events_dropped); | |
339 } | |
340 | |
313 VISIT_PROTO_FIELDS(const sync_pb::DeviceInfoSpecifics& proto) { | 341 VISIT_PROTO_FIELDS(const sync_pb::DeviceInfoSpecifics& proto) { |
314 VISIT(cache_guid); | 342 VISIT(cache_guid); |
315 VISIT(client_name); | 343 VISIT(client_name); |
316 VISIT_ENUM(device_type); | 344 VISIT_ENUM(device_type); |
317 VISIT(sync_user_agent); | 345 VISIT(sync_user_agent); |
318 VISIT(chrome_version); | 346 VISIT(chrome_version); |
319 VISIT(signin_scoped_device_id); | 347 VISIT(signin_scoped_device_id); |
320 } | 348 } |
349 | |
321 VISIT_PROTO_FIELDS(const sync_pb::DictionarySpecifics& proto) { | 350 VISIT_PROTO_FIELDS(const sync_pb::DictionarySpecifics& proto) { |
322 VISIT(word); | 351 VISIT(word); |
323 } | 352 } |
324 | 353 |
325 VISIT_PROTO_FIELDS(const sync_pb::FaviconSyncFlags& proto) { | 354 VISIT_PROTO_FIELDS(const sync_pb::EncryptedData& proto) { |
326 VISIT(enabled); | 355 VISIT(key_name); |
327 VISIT(favicon_sync_limit); | 356 // TODO(akalin): Shouldn't blob be of type bytes instead of string? |
skym
2017/03/31 00:08:11
Is this TODO still relevant?
pavely
2017/03/31 04:06:46
blob is still declared as string in encryption.pro
| |
328 } | 357 VISIT_BYTES(blob); |
329 | |
330 VISIT_PROTO_FIELDS(const sync_pb::KeystoreEncryptionFlags& proto) { | |
331 VISIT(enabled); | |
332 } | |
333 | |
334 VISIT_PROTO_FIELDS(const sync_pb::HistoryDeleteDirectives& proto) { | |
335 VISIT(enabled); | |
336 } | |
337 | |
338 VISIT_PROTO_FIELDS(const sync_pb::AutofillCullingFlags& proto) { | |
339 VISIT(enabled); | |
340 } | |
341 | |
342 VISIT_PROTO_FIELDS(const sync_pb::PreCommitUpdateAvoidanceFlags& proto) { | |
343 VISIT(enabled); | |
344 } | |
345 | |
346 VISIT_PROTO_FIELDS(const sync_pb::GcmChannelFlags& proto) { | |
347 VISIT(enabled); | |
348 } | |
349 | |
350 VISIT_PROTO_FIELDS(const sync_pb::GcmInvalidationsFlags& proto) { | |
351 VISIT(enabled); | |
352 } | 358 } |
353 | 359 |
354 VISIT_PROTO_FIELDS(const sync_pb::EnhancedBookmarksFlags& proto) { | 360 VISIT_PROTO_FIELDS(const sync_pb::EnhancedBookmarksFlags& proto) { |
355 VISIT(enabled); | 361 VISIT(enabled); |
356 VISIT(extension_id); | 362 VISIT(extension_id); |
357 } | 363 } |
358 | 364 |
359 VISIT_PROTO_FIELDS(const sync_pb::WalletSyncFlags& proto) { | 365 VISIT_PROTO_FIELDS(const sync_pb::EntityMetadata& proto) { |
360 VISIT(enabled); | 366 VISIT(client_tag_hash); |
367 VISIT(server_id); | |
368 VISIT(is_deleted); | |
369 VISIT(sequence_number); | |
370 VISIT(acked_sequence_number); | |
371 VISIT(server_version); | |
372 VISIT(creation_time); | |
373 VISIT(modification_time); | |
374 VISIT(specifics_hash); | |
375 VISIT(base_specifics_hash); | |
376 } | |
377 | |
378 VISIT_PROTO_FIELDS(const sync_pb::EntitySpecifics& proto) { | |
379 VISIT(encrypted); | |
380 VISIT(app); | |
381 VISIT(app_list); | |
382 VISIT(app_notification); | |
383 VISIT(app_setting); | |
384 VISIT(arc_package); | |
385 VISIT(article); | |
386 VISIT(autofill); | |
387 VISIT(autofill_profile); | |
388 VISIT(autofill_wallet); | |
389 VISIT(bookmark); | |
390 VISIT(device_info); | |
391 VISIT(dictionary); | |
392 VISIT(experiments); | |
393 VISIT(extension); | |
394 VISIT(extension_setting); | |
395 VISIT(favicon_image); | |
396 VISIT(favicon_tracking); | |
397 VISIT(history_delete_directive); | |
398 VISIT(managed_user); | |
399 VISIT(managed_user_setting); | |
400 VISIT(managed_user_shared_setting); | |
401 VISIT(managed_user_whitelist); | |
402 VISIT(nigori); | |
403 VISIT(password); | |
404 VISIT(preference); | |
405 VISIT(printer); | |
406 VISIT(priority_preference); | |
407 VISIT(reading_list); | |
408 VISIT(search_engine); | |
409 VISIT(session); | |
410 VISIT(synced_notification); | |
411 VISIT(synced_notification_app_info); | |
412 VISIT(theme); | |
413 VISIT(typed_url); | |
414 VISIT(user_event); | |
415 VISIT(wallet_metadata); | |
416 VISIT(wifi_credential); | |
361 } | 417 } |
362 | 418 |
363 VISIT_PROTO_FIELDS(const sync_pb::ExperimentsSpecifics& proto) { | 419 VISIT_PROTO_FIELDS(const sync_pb::ExperimentsSpecifics& proto) { |
364 VISIT(keystore_encryption); | 420 VISIT(keystore_encryption); |
365 VISIT(history_delete_directives); | 421 VISIT(history_delete_directives); |
366 VISIT(autofill_culling); | 422 VISIT(autofill_culling); |
367 VISIT(pre_commit_update_avoidance); | 423 VISIT(pre_commit_update_avoidance); |
368 VISIT(favicon_sync); | 424 VISIT(favicon_sync); |
369 VISIT(gcm_channel); | 425 VISIT(gcm_channel); |
370 VISIT(gcm_invalidations); | 426 VISIT(gcm_invalidations); |
(...skipping 27 matching lines...) Expand all Loading... | |
398 } | 454 } |
399 | 455 |
400 VISIT_PROTO_FIELDS(const sync_pb::FaviconImageSpecifics& proto) { | 456 VISIT_PROTO_FIELDS(const sync_pb::FaviconImageSpecifics& proto) { |
401 VISIT(favicon_url); | 457 VISIT(favicon_url); |
402 VISIT(favicon_web); | 458 VISIT(favicon_web); |
403 VISIT(favicon_web_32); | 459 VISIT(favicon_web_32); |
404 VISIT(favicon_touch_64); | 460 VISIT(favicon_touch_64); |
405 VISIT(favicon_touch_precomposed_64); | 461 VISIT(favicon_touch_precomposed_64); |
406 } | 462 } |
407 | 463 |
464 VISIT_PROTO_FIELDS(const sync_pb::FaviconSyncFlags& proto) { | |
465 VISIT(enabled); | |
466 VISIT(favicon_sync_limit); | |
467 } | |
468 | |
408 VISIT_PROTO_FIELDS(const sync_pb::FaviconTrackingSpecifics& proto) { | 469 VISIT_PROTO_FIELDS(const sync_pb::FaviconTrackingSpecifics& proto) { |
409 VISIT(favicon_url); | 470 VISIT(favicon_url); |
410 VISIT(last_visit_time_ms); | 471 VISIT(last_visit_time_ms); |
411 VISIT(is_bookmarked); | 472 VISIT(is_bookmarked); |
412 } | 473 } |
413 | 474 |
475 VISIT_PROTO_FIELDS(const sync_pb::GcmChannelFlags& proto) { | |
476 VISIT(enabled); | |
477 } | |
478 | |
479 VISIT_PROTO_FIELDS(const sync_pb::GcmInvalidationsFlags& proto) { | |
480 VISIT(enabled); | |
481 } | |
482 | |
483 VISIT_PROTO_FIELDS(const sync_pb::GetUpdateTriggers& proto) { | |
484 VISIT_REP(notification_hint); | |
485 VISIT(client_dropped_hints); | |
486 VISIT(invalidations_out_of_sync); | |
487 VISIT(local_modification_nudges); | |
488 VISIT(datatype_refresh_nudges); | |
489 } | |
490 | |
491 VISIT_PROTO_FIELDS(const sync_pb::GetUpdatesCallerInfo& proto) { | |
492 VISIT_ENUM(source); | |
493 VISIT(notifications_enabled); | |
494 } | |
495 | |
496 VISIT_PROTO_FIELDS(const sync_pb::GetUpdatesMessage& proto) { | |
497 VISIT(caller_info); | |
498 VISIT(fetch_folders); | |
499 VISIT(batch_size); | |
500 VISIT_REP(from_progress_marker); | |
501 VISIT(streaming); | |
502 VISIT(need_encryption_key); | |
503 VISIT(create_mobile_bookmarks_folder); | |
504 VISIT_ENUM(get_updates_origin); | |
505 VISIT_REP(client_contexts); | |
506 } | |
507 | |
508 VISIT_PROTO_FIELDS(const sync_pb::GetUpdatesResponse& proto) { | |
509 VISIT_REP(entries) | |
510 VISIT(changes_remaining); | |
511 VISIT_REP(new_progress_marker); | |
512 VISIT_REP(context_mutations); | |
513 } | |
514 | |
515 VISIT_PROTO_FIELDS(const sync_pb::GlobalIdDirective& proto) { | |
516 VISIT_REP(global_id); | |
517 VISIT(start_time_usec); | |
518 VISIT(end_time_usec); | |
519 } | |
520 | |
414 VISIT_PROTO_FIELDS(const sync_pb::HistoryDeleteDirectiveSpecifics& proto) { | 521 VISIT_PROTO_FIELDS(const sync_pb::HistoryDeleteDirectiveSpecifics& proto) { |
415 VISIT(global_id_directive); | 522 VISIT(global_id_directive); |
416 VISIT(time_range_directive); | 523 VISIT(time_range_directive); |
417 } | 524 } |
418 | 525 |
526 VISIT_PROTO_FIELDS(const sync_pb::HistoryDeleteDirectives& proto) { | |
527 VISIT(enabled); | |
528 } | |
529 | |
530 VISIT_PROTO_FIELDS(const sync_pb::KeystoreEncryptionFlags& proto) { | |
531 VISIT(enabled); | |
532 } | |
533 | |
534 VISIT_PROTO_FIELDS(const sync_pb::LinkedAppIconInfo& proto) { | |
535 VISIT(url); | |
536 VISIT(size); | |
537 } | |
538 | |
419 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSettingSpecifics& proto) { | 539 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSettingSpecifics& proto) { |
420 VISIT(name); | 540 VISIT(name); |
421 VISIT(value); | 541 VISIT(value); |
422 } | 542 } |
423 | 543 |
544 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSharedSettingSpecifics& proto) { | |
545 VISIT(mu_id); | |
546 VISIT(key); | |
547 VISIT(value); | |
548 VISIT(acknowledged); | |
549 } | |
550 | |
424 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSpecifics& proto) { | 551 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSpecifics& proto) { |
425 VISIT(id); | 552 VISIT(id); |
426 VISIT(name); | 553 VISIT(name); |
427 VISIT(acknowledged); | 554 VISIT(acknowledged); |
428 VISIT(master_key); | 555 VISIT(master_key); |
429 VISIT(chrome_avatar); | 556 VISIT(chrome_avatar); |
430 VISIT(chromeos_avatar); | 557 VISIT(chromeos_avatar); |
431 VISIT(password_signature_key); | 558 VISIT(password_signature_key); |
432 VISIT(password_encryption_key); | 559 VISIT(password_encryption_key); |
433 } | 560 } |
434 | 561 |
435 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserSharedSettingSpecifics& proto) { | |
436 VISIT(mu_id); | |
437 VISIT(key); | |
438 VISIT(value); | |
439 VISIT(acknowledged); | |
440 } | |
441 | |
442 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserWhitelistSpecifics& proto) { | 562 VISIT_PROTO_FIELDS(const sync_pb::ManagedUserWhitelistSpecifics& proto) { |
443 VISIT(id); | 563 VISIT(id); |
444 VISIT(name); | 564 VISIT(name); |
445 } | 565 } |
446 | 566 |
567 VISIT_PROTO_FIELDS(const sync_pb::MetaInfo& proto) { | |
568 VISIT(key); | |
569 VISIT(value); | |
570 } | |
571 | |
572 VISIT_PROTO_FIELDS(const sync_pb::ModelTypeState& proto) { | |
573 VISIT(progress_marker); | |
574 VISIT(type_context); | |
575 VISIT(encryption_key_name); | |
576 VISIT(initial_sync_done); | |
577 } | |
578 | |
579 VISIT_PROTO_FIELDS(const sync_pb::NavigationRedirect& proto) { | |
580 VISIT(url); | |
581 } | |
582 | |
447 VISIT_PROTO_FIELDS(const sync_pb::NigoriSpecifics& proto) { | 583 VISIT_PROTO_FIELDS(const sync_pb::NigoriSpecifics& proto) { |
448 VISIT(encryption_keybag); | 584 VISIT(encryption_keybag); |
449 VISIT(keybag_is_frozen); | 585 VISIT(keybag_is_frozen); |
450 VISIT(encrypt_bookmarks); | 586 VISIT(encrypt_bookmarks); |
451 VISIT(encrypt_preferences); | 587 VISIT(encrypt_preferences); |
452 VISIT(encrypt_autofill_profile); | 588 VISIT(encrypt_autofill_profile); |
453 VISIT(encrypt_autofill); | 589 VISIT(encrypt_autofill); |
454 VISIT(encrypt_themes); | 590 VISIT(encrypt_themes); |
455 VISIT(encrypt_typed_urls); | 591 VISIT(encrypt_typed_urls); |
456 VISIT(encrypt_extension_settings); | 592 VISIT(encrypt_extension_settings); |
457 VISIT(encrypt_extensions); | 593 VISIT(encrypt_extensions); |
458 VISIT(encrypt_sessions); | 594 VISIT(encrypt_sessions); |
459 VISIT(encrypt_app_settings); | 595 VISIT(encrypt_app_settings); |
460 VISIT(encrypt_apps); | 596 VISIT(encrypt_apps); |
461 VISIT(encrypt_search_engines); | 597 VISIT(encrypt_search_engines); |
462 VISIT(encrypt_dictionary); | 598 VISIT(encrypt_dictionary); |
463 VISIT(encrypt_articles); | 599 VISIT(encrypt_articles); |
464 VISIT(encrypt_app_list); | 600 VISIT(encrypt_app_list); |
465 VISIT(encrypt_arc_package); | 601 VISIT(encrypt_arc_package); |
466 VISIT(encrypt_reading_list); | 602 VISIT(encrypt_reading_list); |
467 VISIT(encrypt_everything); | 603 VISIT(encrypt_everything); |
468 VISIT(server_only_was_missing_keystore_migration_time); | 604 VISIT(server_only_was_missing_keystore_migration_time); |
469 VISIT(sync_tab_favicons); | 605 VISIT(sync_tab_favicons); |
470 VISIT_ENUM(passphrase_type); | 606 VISIT_ENUM(passphrase_type); |
471 VISIT(keystore_decryptor_token); | 607 VISIT(keystore_decryptor_token); |
472 VISIT(keystore_migration_time); | 608 VISIT(keystore_migration_time); |
473 VISIT(custom_passphrase_time); | 609 VISIT(custom_passphrase_time); |
474 } | 610 } |
475 | 611 |
476 VISIT_PROTO_FIELDS(const sync_pb::ArticlePage& proto) { | |
477 VISIT(url); | |
478 } | |
479 | |
480 VISIT_PROTO_FIELDS(const sync_pb::ArticleSpecifics& proto) { | |
481 VISIT(entry_id); | |
482 VISIT(title); | |
483 VISIT_REP(pages); | |
484 VISIT(attachments); | |
485 } | |
486 | |
487 VISIT_PROTO_FIELDS(const sync_pb::ArticleAttachments& proto) { | |
488 VISIT(distilled_article); | |
489 } | |
490 | |
491 VISIT_PROTO_FIELDS(const sync_pb::PasswordSpecifics& proto) { | 612 VISIT_PROTO_FIELDS(const sync_pb::PasswordSpecifics& proto) { |
492 VISIT(encrypted); | 613 VISIT(encrypted); |
493 VISIT(unencrypted_metadata); | 614 VISIT(unencrypted_metadata); |
494 VISIT(client_only_encrypted_data); | 615 VISIT(client_only_encrypted_data); |
495 } | 616 } |
496 | 617 |
618 VISIT_PROTO_FIELDS(const sync_pb::PasswordSpecificsData& proto) { | |
619 VISIT(scheme); | |
620 VISIT(signon_realm); | |
621 VISIT(origin); | |
622 VISIT(action); | |
623 VISIT(username_element); | |
624 VISIT(username_value); | |
625 VISIT(password_element); | |
626 VISIT(password_value); | |
627 VISIT(preferred); | |
628 VISIT(date_created); | |
629 VISIT(blacklisted); | |
630 VISIT(type); | |
631 VISIT(times_used); | |
632 VISIT(display_name); | |
633 VISIT(avatar_url); | |
634 VISIT(federation_url); | |
635 } | |
636 | |
637 VISIT_PROTO_FIELDS(const sync_pb::PasswordSpecificsMetadata& proto) { | |
638 VISIT(url); | |
639 } | |
640 | |
641 VISIT_PROTO_FIELDS(const sync_pb::PreCommitUpdateAvoidanceFlags& proto) { | |
642 VISIT(enabled); | |
643 } | |
644 | |
497 VISIT_PROTO_FIELDS(const sync_pb::PreferenceSpecifics& proto) { | 645 VISIT_PROTO_FIELDS(const sync_pb::PreferenceSpecifics& proto) { |
498 VISIT(name); | 646 VISIT(name); |
499 VISIT(value); | 647 VISIT(value); |
500 } | 648 } |
501 | 649 |
650 VISIT_PROTO_FIELDS(const sync_pb::PrinterPPDReference& proto) { | |
651 VISIT(user_supplied_ppd_url); | |
652 VISIT(effective_make_and_model); | |
653 } | |
654 | |
502 VISIT_PROTO_FIELDS(const sync_pb::PrinterSpecifics& proto) { | 655 VISIT_PROTO_FIELDS(const sync_pb::PrinterSpecifics& proto) { |
503 VISIT(id); | 656 VISIT(id); |
504 VISIT(display_name); | 657 VISIT(display_name); |
505 VISIT(description); | 658 VISIT(description); |
506 VISIT(manufacturer); | 659 VISIT(manufacturer); |
507 VISIT(model); | 660 VISIT(model); |
508 VISIT(uri); | 661 VISIT(uri); |
509 VISIT(uuid); | 662 VISIT(uuid); |
510 VISIT(ppd_reference); | 663 VISIT(ppd_reference); |
511 } | 664 } |
512 | 665 |
513 VISIT_PROTO_FIELDS(const sync_pb::PriorityPreferenceSpecifics& proto) { | 666 VISIT_PROTO_FIELDS(const sync_pb::PriorityPreferenceSpecifics& proto) { |
514 VISIT(preference); | 667 VISIT(preference); |
515 } | 668 } |
516 | 669 |
517 VISIT_PROTO_FIELDS(const sync_pb::SyncedNotificationAppInfoSpecifics& proto) {} | 670 VISIT_PROTO_FIELDS(const sync_pb::ReadingListSpecifics& proto) { |
518 | 671 VISIT(entry_id); |
519 VISIT_PROTO_FIELDS(const sync_pb::SyncedNotificationSpecifics& proto) {} | 672 VISIT(title); |
673 VISIT(url); | |
674 VISIT(creation_time_us); | |
675 VISIT(update_time_us); | |
676 VISIT_ENUM(status); | |
677 } | |
520 | 678 |
521 VISIT_PROTO_FIELDS(const sync_pb::SearchEngineSpecifics& proto) { | 679 VISIT_PROTO_FIELDS(const sync_pb::SearchEngineSpecifics& proto) { |
522 VISIT(short_name); | 680 VISIT(short_name); |
523 VISIT(keyword); | 681 VISIT(keyword); |
524 VISIT(favicon_url); | 682 VISIT(favicon_url); |
525 VISIT(url); | 683 VISIT(url); |
526 VISIT(safe_for_autoreplace); | 684 VISIT(safe_for_autoreplace); |
527 VISIT(originating_url); | 685 VISIT(originating_url); |
528 VISIT(date_created); | 686 VISIT(date_created); |
529 VISIT(input_encodings); | 687 VISIT(input_encodings); |
530 VISIT(suggestions_url); | 688 VISIT(suggestions_url); |
531 VISIT(prepopulate_id); | 689 VISIT(prepopulate_id); |
532 VISIT(autogenerate_keyword); | 690 VISIT(autogenerate_keyword); |
533 VISIT(instant_url); | 691 VISIT(instant_url); |
534 VISIT(last_modified); | 692 VISIT(last_modified); |
535 VISIT(sync_guid); | 693 VISIT(sync_guid); |
536 VISIT_REP(alternate_urls); | 694 VISIT_REP(alternate_urls); |
537 VISIT(search_terms_replacement_key); | 695 VISIT(search_terms_replacement_key); |
538 VISIT(image_url); | 696 VISIT(image_url); |
539 VISIT(search_url_post_params); | 697 VISIT(search_url_post_params); |
540 VISIT(suggestions_url_post_params); | 698 VISIT(suggestions_url_post_params); |
541 VISIT(instant_url_post_params); | 699 VISIT(instant_url_post_params); |
542 VISIT(image_url_post_params); | 700 VISIT(image_url_post_params); |
543 VISIT(new_tab_url); | 701 VISIT(new_tab_url); |
544 } | 702 } |
545 | 703 |
704 VISIT_PROTO_FIELDS(const sync_pb::SessionHeader& proto) { | |
705 VISIT_REP(window); | |
706 VISIT(client_name); | |
707 VISIT_ENUM(device_type); | |
708 } | |
709 | |
546 VISIT_PROTO_FIELDS(const sync_pb::SessionSpecifics& proto) { | 710 VISIT_PROTO_FIELDS(const sync_pb::SessionSpecifics& proto) { |
547 VISIT(session_tag); | 711 VISIT(session_tag); |
548 VISIT(header); | 712 VISIT(header); |
549 VISIT(tab); | 713 VISIT(tab); |
550 VISIT(tab_node_id); | 714 VISIT(tab_node_id); |
551 } | 715 } |
552 | 716 |
553 VISIT_PROTO_FIELDS(const sync_pb::ThemeSpecifics& proto) { | 717 VISIT_PROTO_FIELDS(const sync_pb::SessionTab& proto) { |
554 VISIT(use_custom_theme); | 718 VISIT(tab_id); |
555 VISIT(use_system_theme_by_default); | 719 VISIT(window_id); |
556 VISIT(custom_theme_name); | 720 VISIT(tab_visual_index); |
557 VISIT(custom_theme_id); | 721 VISIT(current_navigation_index); |
558 VISIT(custom_theme_update_url); | 722 VISIT(pinned); |
723 VISIT(extension_app_id); | |
724 VISIT_REP(navigation); | |
725 VISIT_BYTES(favicon); | |
726 VISIT_ENUM(favicon_type); | |
727 VISIT(favicon_source); | |
728 VISIT_REP(variation_id); | |
559 } | 729 } |
560 | 730 |
561 VISIT_PROTO_FIELDS(const sync_pb::TypedUrlSpecifics& proto) { | 731 VISIT_PROTO_FIELDS(const sync_pb::SessionWindow& proto) { |
562 VISIT(url); | 732 VISIT(window_id); |
563 VISIT(title); | 733 VISIT(selected_tab_index); |
564 VISIT(hidden); | 734 VISIT_REP(tab); |
565 VISIT_REP(visits); | 735 VISIT_ENUM(browser_type); |
566 VISIT_REP(visit_transitions); | |
567 } | 736 } |
568 | 737 |
569 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) { | 738 VISIT_PROTO_FIELDS(const sync_pb::SourceInfo& proto) { |
570 VISIT(event_time_usec); | 739 VISIT_ENUM(source); |
571 VISIT(navigation_id); | 740 VISIT_REP(type_hint); |
572 } | 741 } |
573 | 742 |
574 VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) { | 743 VISIT_PROTO_FIELDS(const sync_pb::SyncCycleCompletedEventInfo& proto) { |
575 VISIT(id); | 744 VISIT(num_encryption_conflicts); |
576 VISIT_ENUM(status); | 745 VISIT(num_hierarchy_conflicts); |
577 VISIT(name_on_card); | 746 VISIT(num_server_conflicts); |
578 VISIT_ENUM(type); | 747 VISIT(num_updates_downloaded); |
579 VISIT(last_four); | 748 VISIT(num_reflected_updates_downloaded); |
580 VISIT(exp_month); | 749 VISIT(caller_info); |
581 VISIT(exp_year); | 750 VISIT_REP(source_info); |
582 VISIT(billing_address_id); | |
583 VISIT_ENUM(card_class); | |
584 VISIT(bank_name); | |
585 } | |
586 | |
587 VISIT_PROTO_FIELDS(const sync_pb::WalletPostalAddress& proto) { | |
588 VISIT(id); | |
589 VISIT(recipient_name); | |
590 VISIT(company_name); | |
591 VISIT_REP(street_address); | |
592 VISIT(address_1); | |
593 VISIT(address_2); | |
594 VISIT(address_3); | |
595 VISIT(address_4); | |
596 VISIT(postal_code); | |
597 VISIT(sorting_code); | |
598 VISIT(country_code); | |
599 VISIT(phone_number); | |
600 VISIT(language_code); | |
601 } | |
602 | |
603 VISIT_PROTO_FIELDS(const sync_pb::WifiCredentialSpecifics& proto) { | |
604 VISIT_BYTES(ssid); | |
605 VISIT_ENUM(security_class); | |
606 VISIT_BYTES(passphrase); | |
607 } | |
608 | |
609 VISIT_PROTO_FIELDS(const sync_pb::EntitySpecifics& proto) { | |
610 VISIT(encrypted); | |
611 VISIT(app); | |
612 VISIT(app_list); | |
613 VISIT(app_notification); | |
614 VISIT(app_setting); | |
615 VISIT(arc_package); | |
616 VISIT(article); | |
617 VISIT(autofill); | |
618 VISIT(autofill_profile); | |
619 VISIT(autofill_wallet); | |
620 VISIT(bookmark); | |
621 VISIT(device_info); | |
622 VISIT(dictionary); | |
623 VISIT(experiments); | |
624 VISIT(extension); | |
625 VISIT(extension_setting); | |
626 VISIT(favicon_image); | |
627 VISIT(favicon_tracking); | |
628 VISIT(history_delete_directive); | |
629 VISIT(managed_user); | |
630 VISIT(managed_user_setting); | |
631 VISIT(managed_user_shared_setting); | |
632 VISIT(managed_user_whitelist); | |
633 VISIT(nigori); | |
634 VISIT(password); | |
635 VISIT(preference); | |
636 VISIT(printer); | |
637 VISIT(priority_preference); | |
638 VISIT(reading_list); | |
639 VISIT(search_engine); | |
640 VISIT(session); | |
641 VISIT(synced_notification); | |
642 VISIT(synced_notification_app_info); | |
643 VISIT(theme); | |
644 VISIT(typed_url); | |
645 VISIT(user_event); | |
646 VISIT(wallet_metadata); | |
647 VISIT(wifi_credential); | |
648 } | |
649 | |
650 VISIT_PROTO_FIELDS(const sync_pb::SyncEntity::BookmarkData& proto) { | |
651 VISIT(bookmark_folder); | |
652 VISIT(bookmark_url); | |
653 VISIT(bookmark_favicon); | |
654 } | 751 } |
655 | 752 |
656 VISIT_PROTO_FIELDS(const sync_pb::SyncEntity& proto) { | 753 VISIT_PROTO_FIELDS(const sync_pb::SyncEntity& proto) { |
657 VISIT(id_string); | 754 VISIT(id_string); |
658 VISIT(parent_id_string); | 755 VISIT(parent_id_string); |
659 VISIT(old_parent_id); | 756 VISIT(old_parent_id); |
660 VISIT(version); | 757 VISIT(version); |
661 VISIT(mtime); | 758 VISIT(mtime); |
662 VISIT(ctime); | 759 VISIT(ctime); |
663 VISIT(name); | 760 VISIT(name); |
664 VISIT(non_unique_name); | 761 VISIT(non_unique_name); |
665 VISIT(sync_timestamp); | 762 VISIT(sync_timestamp); |
666 VISIT(server_defined_unique_tag); | 763 VISIT(server_defined_unique_tag); |
667 VISIT(position_in_parent); | 764 VISIT(position_in_parent); |
668 VISIT(unique_position); | 765 VISIT(unique_position); |
669 VISIT(insert_after_item_id); | 766 VISIT(insert_after_item_id); |
670 VISIT(deleted); | 767 VISIT(deleted); |
671 VISIT(originator_cache_guid); | 768 VISIT(originator_cache_guid); |
672 VISIT(originator_client_item_id); | 769 VISIT(originator_client_item_id); |
673 VISIT(specifics); | 770 VISIT(specifics); |
674 VISIT(folder); | 771 VISIT(folder); |
675 VISIT(client_defined_unique_tag); | 772 VISIT(client_defined_unique_tag); |
676 VISIT_REP(attachment_id); | 773 VISIT_REP(attachment_id); |
677 VISIT_BYTES(ordinal_in_parent); | 774 VISIT_BYTES(ordinal_in_parent); |
678 VISIT(bookmarkdata); | 775 VISIT(bookmarkdata); |
679 } | 776 } |
680 | 777 |
681 VISIT_PROTO_FIELDS(const sync_pb::ChromiumExtensionsActivity& proto) { | 778 VISIT_PROTO_FIELDS(const sync_pb::SyncEntity::BookmarkData& proto) { |
682 VISIT(extension_id); | 779 VISIT(bookmark_folder); |
683 VISIT(bookmark_writes_since_last_commit); | 780 VISIT(bookmark_url); |
781 VISIT(bookmark_favicon); | |
684 } | 782 } |
685 | 783 |
686 VISIT_PROTO_FIELDS(const sync_pb::CommitMessage& proto) { | 784 VISIT_PROTO_FIELDS(const sync_pb::SyncedNotificationAppInfoSpecifics& proto) {} |
687 VISIT_REP(entries); | 785 |
688 VISIT(cache_guid); | 786 VISIT_PROTO_FIELDS(const sync_pb::SyncedNotificationSpecifics& proto) {} |
689 VISIT_REP(extensions_activity); | 787 |
690 VISIT(config_params); | 788 VISIT_PROTO_FIELDS(const sync_pb::TabNavigation& proto) { |
789 VISIT(virtual_url); | |
790 VISIT(referrer); | |
791 VISIT(title); | |
792 VISIT_ENUM(page_transition); | |
793 VISIT_ENUM(redirect_type); | |
794 VISIT(unique_id); | |
795 VISIT(timestamp_msec); | |
796 VISIT(navigation_forward_back); | |
797 VISIT(navigation_from_address_bar); | |
798 VISIT(navigation_home_page); | |
799 VISIT(navigation_chain_start); | |
800 VISIT(navigation_chain_end); | |
801 VISIT(global_id); | |
802 VISIT(search_terms); | |
803 VISIT(favicon_url); | |
804 VISIT_ENUM(blocked_state); | |
805 VISIT_REP(content_pack_categories); | |
806 VISIT(http_status_code); | |
807 VISIT(obsolete_referrer_policy); | |
808 VISIT(is_restored); | |
809 VISIT_REP(navigation_redirect); | |
810 VISIT(last_navigation_redirect_url); | |
811 VISIT(correct_referrer_policy); | |
812 VISIT_ENUM(password_state); | |
691 } | 813 } |
692 | 814 |
693 VISIT_PROTO_FIELDS(const sync_pb::GetUpdateTriggers& proto) { | 815 VISIT_PROTO_FIELDS(const sync_pb::ThemeSpecifics& proto) { |
694 VISIT_REP(notification_hint); | 816 VISIT(use_custom_theme); |
695 VISIT(client_dropped_hints); | 817 VISIT(use_system_theme_by_default); |
696 VISIT(invalidations_out_of_sync); | 818 VISIT(custom_theme_name); |
697 VISIT(local_modification_nudges); | 819 VISIT(custom_theme_id); |
698 VISIT(datatype_refresh_nudges); | 820 VISIT(custom_theme_update_url); |
699 } | 821 } |
700 | 822 |
701 VISIT_PROTO_FIELDS(const sync_pb::DataTypeProgressMarker& proto) { | 823 VISIT_PROTO_FIELDS(const sync_pb::TimeRangeDirective& proto) { |
702 VISIT(data_type_id); | 824 VISIT(start_time_usec); |
703 VISIT_BYTES(token); | 825 VISIT(end_time_usec); |
704 VISIT(timestamp_token_for_migration); | |
705 VISIT(notification_hint); | |
706 VISIT(get_update_triggers); | |
707 } | 826 } |
708 | 827 |
709 VISIT_PROTO_FIELDS(const sync_pb::DataTypeContext& proto) { | 828 VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) { |
710 VISIT(data_type_id); | 829 VISIT(data_type_id); |
711 VISIT(context); | 830 VISIT(has_valid_hint); |
712 VISIT(version); | |
713 } | 831 } |
714 | 832 |
715 VISIT_PROTO_FIELDS(const sync_pb::GetUpdatesCallerInfo& proto) { | 833 VISIT_PROTO_FIELDS(const sync_pb::TypedUrlSpecifics& proto) { |
716 VISIT_ENUM(source); | |
717 VISIT(notifications_enabled); | |
718 } | |
719 | |
720 VISIT_PROTO_FIELDS(const sync_pb::GetUpdatesMessage& proto) { | |
721 VISIT(caller_info); | |
722 VISIT(fetch_folders); | |
723 VISIT(batch_size); | |
724 VISIT_REP(from_progress_marker); | |
725 VISIT(streaming); | |
726 VISIT(need_encryption_key); | |
727 VISIT(create_mobile_bookmarks_folder); | |
728 VISIT_ENUM(get_updates_origin); | |
729 VISIT_REP(client_contexts); | |
730 } | |
731 | |
732 VISIT_PROTO_FIELDS(const sync_pb::ClientStatus& proto) { | |
733 VISIT(hierarchy_conflict_detected); | |
734 } | |
735 | |
736 VISIT_PROTO_FIELDS(const sync_pb::CommitResponse::EntryResponse& proto) { | |
737 VISIT_ENUM(response_type); | |
738 VISIT(id_string); | |
739 VISIT(parent_id_string); | |
740 VISIT(position_in_parent); | |
741 VISIT(version); | |
742 VISIT(name); | |
743 VISIT(error_message); | |
744 VISIT(mtime); | |
745 } | |
746 | |
747 VISIT_PROTO_FIELDS(const sync_pb::CommitResponse& proto) { | |
748 VISIT_REP(entryresponse); | |
749 } | |
750 | |
751 VISIT_PROTO_FIELDS(const sync_pb::GetUpdatesResponse& proto) { | |
752 VISIT_REP(entries) | |
753 VISIT(changes_remaining); | |
754 VISIT_REP(new_progress_marker); | |
755 VISIT_REP(context_mutations); | |
756 } | |
757 | |
758 VISIT_PROTO_FIELDS(const sync_pb::ClientCommand& proto) { | |
759 VISIT(set_sync_poll_interval); | |
760 VISIT(set_sync_long_poll_interval); | |
761 VISIT(max_commit_batch_size); | |
762 VISIT(sessions_commit_delay_seconds); | |
763 VISIT(throttle_delay_seconds); | |
764 VISIT(client_invalidation_hint_buffer_size); | |
765 } | |
766 | |
767 VISIT_PROTO_FIELDS(const sync_pb::ClientToServerResponse::Error& proto) { | |
768 VISIT_ENUM(error_type); | |
769 VISIT(error_description); | |
770 VISIT(url); | 834 VISIT(url); |
771 VISIT_ENUM(action); | 835 VISIT(title); |
772 } | 836 VISIT(hidden); |
773 | 837 VISIT_REP(visits); |
774 VISIT_PROTO_FIELDS(const sync_pb::ClientToServerResponse& proto) { | 838 VISIT_REP(visit_transitions); |
775 VISIT(commit); | |
776 VISIT(get_updates); | |
777 VISIT(error); | |
778 VISIT_ENUM(error_code); | |
779 VISIT(error_message); | |
780 VISIT(store_birthday); | |
781 VISIT(client_command); | |
782 VISIT_REP(migrated_data_type_id); | |
783 } | |
784 | |
785 VISIT_PROTO_FIELDS(const sync_pb::ClientToServerMessage& proto) { | |
786 VISIT(share); | |
787 VISIT(protocol_version); | |
788 VISIT(commit); | |
789 VISIT(get_updates); | |
790 VISIT(store_birthday); | |
791 VISIT(sync_problem_detected); | |
792 VISIT(debug_info); | |
793 VISIT(client_status); | |
794 } | |
795 | |
796 VISIT_PROTO_FIELDS(const sync_pb::DatatypeAssociationStats& proto) { | |
797 VISIT(data_type_id); | |
798 VISIT(num_local_items_before_association); | |
799 VISIT(num_sync_items_before_association); | |
800 VISIT(num_local_items_after_association); | |
801 VISIT(num_sync_items_after_association); | |
802 VISIT(num_local_items_added); | |
803 VISIT(num_local_items_deleted); | |
804 VISIT(num_local_items_modified); | |
805 VISIT(num_sync_items_added); | |
806 VISIT(num_sync_items_deleted); | |
807 VISIT(num_sync_items_modified); | |
808 VISIT(local_version_pre_association); | |
809 VISIT(sync_version_pre_association); | |
810 VISIT(had_error); | |
811 VISIT(download_wait_time_us); | |
812 VISIT(download_time_us); | |
813 VISIT(association_wait_time_for_high_priority_us); | |
814 VISIT(association_wait_time_for_same_priority_us); | |
815 VISIT_REP(high_priority_type_configured_before); | |
816 VISIT_REP(same_priority_type_configured_before); | |
817 } | |
818 | |
819 VISIT_PROTO_FIELDS(const sync_pb::DebugEventInfo& proto) { | |
820 VISIT_ENUM(singleton_event); | |
821 VISIT(sync_cycle_completed_event_info); | |
822 VISIT(nudging_datatype); | |
823 VISIT_REP(datatypes_notified_from_server); | |
824 VISIT(datatype_association_stats); | |
825 } | |
826 | |
827 VISIT_PROTO_FIELDS(const sync_pb::DebugInfo& proto) { | |
828 VISIT_REP(events); | |
829 VISIT(cryptographer_ready); | |
830 VISIT(cryptographer_has_pending_keys); | |
831 VISIT(events_dropped); | |
832 } | |
833 | |
834 VISIT_PROTO_FIELDS(const sync_pb::SyncCycleCompletedEventInfo& proto) { | |
835 VISIT(num_encryption_conflicts); | |
836 VISIT(num_hierarchy_conflicts); | |
837 VISIT(num_server_conflicts); | |
838 VISIT(num_updates_downloaded); | |
839 VISIT(num_reflected_updates_downloaded); | |
840 VISIT(caller_info); | |
841 VISIT_REP(source_info); | |
842 } | |
843 | |
844 VISIT_PROTO_FIELDS(const sync_pb::ClientConfigParams& proto) { | |
845 VISIT_REP(enabled_type_ids); | |
846 VISIT(tabs_datatype_enabled); | |
847 VISIT(cookie_jar_mismatch); | |
848 } | |
849 | |
850 VISIT_PROTO_FIELDS(const sync_pb::AttachmentIdProto& proto) { | |
851 VISIT(unique_id); | |
852 } | |
853 | |
854 VISIT_PROTO_FIELDS(const sync_pb::AttachmentMetadataRecord& proto) { | |
855 VISIT(id); | |
856 VISIT(is_on_server); | |
857 } | |
858 | |
859 VISIT_PROTO_FIELDS(const sync_pb::AttachmentMetadata& proto) { | |
860 VISIT_REP(record); | |
861 } | |
862 | |
863 VISIT_PROTO_FIELDS(const sync_pb::ModelTypeState& proto) { | |
864 VISIT(progress_marker); | |
865 VISIT(type_context); | |
866 VISIT(encryption_key_name); | |
867 VISIT(initial_sync_done); | |
868 } | |
869 | |
870 VISIT_PROTO_FIELDS(const sync_pb::EntityMetadata& proto) { | |
871 VISIT(client_tag_hash); | |
872 VISIT(server_id); | |
873 VISIT(is_deleted); | |
874 VISIT(sequence_number); | |
875 VISIT(acked_sequence_number); | |
876 VISIT(server_version); | |
877 VISIT(creation_time); | |
878 VISIT(modification_time); | |
879 VISIT(specifics_hash); | |
880 VISIT(base_specifics_hash); | |
881 } | 839 } |
882 | 840 |
883 VISIT_PROTO_FIELDS(const sync_pb::UniquePosition& proto) { | 841 VISIT_PROTO_FIELDS(const sync_pb::UniquePosition& proto) { |
884 VISIT_BYTES(value); | 842 VISIT_BYTES(value); |
885 VISIT_BYTES(compressed_value); | 843 VISIT_BYTES(compressed_value); |
886 VISIT(uncompressed_length); | 844 VISIT(uncompressed_length); |
887 VISIT_BYTES(custom_compressed_v1); | 845 VISIT_BYTES(custom_compressed_v1); |
888 } | 846 } |
889 | 847 |
890 VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) { | 848 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) { |
891 VISIT(data_type_id); | 849 VISIT(event_time_usec); |
892 VISIT(has_valid_hint); | 850 VISIT(navigation_id); |
893 } | 851 } |
894 | 852 |
895 VISIT_PROTO_FIELDS(const sync_pb::SourceInfo& proto) { | 853 VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) { |
896 VISIT_ENUM(source); | 854 VISIT(id); |
897 VISIT_REP(type_hint); | 855 VISIT_ENUM(status); |
856 VISIT(name_on_card); | |
857 VISIT_ENUM(type); | |
858 VISIT(last_four); | |
859 VISIT(exp_month); | |
860 VISIT(exp_year); | |
861 VISIT(billing_address_id); | |
862 VISIT_ENUM(card_class); | |
863 VISIT(bank_name); | |
864 } | |
865 | |
866 VISIT_PROTO_FIELDS(const sync_pb::WalletMetadataSpecifics& proto) { | |
867 VISIT_ENUM(type); | |
868 VISIT(id); | |
869 VISIT(use_count); | |
870 VISIT(use_date); | |
871 VISIT(card_billing_address_id); | |
872 VISIT(address_has_converted); | |
873 } | |
874 | |
875 VISIT_PROTO_FIELDS(const sync_pb::WalletPostalAddress& proto) { | |
876 VISIT(id); | |
877 VISIT(recipient_name); | |
878 VISIT(company_name); | |
879 VISIT_REP(street_address); | |
880 VISIT(address_1); | |
881 VISIT(address_2); | |
882 VISIT(address_3); | |
883 VISIT(address_4); | |
884 VISIT(postal_code); | |
885 VISIT(sorting_code); | |
886 VISIT(country_code); | |
887 VISIT(phone_number); | |
888 VISIT(language_code); | |
889 } | |
890 | |
891 VISIT_PROTO_FIELDS(const sync_pb::WalletSyncFlags& proto) { | |
892 VISIT(enabled); | |
893 } | |
894 | |
895 VISIT_PROTO_FIELDS(const sync_pb::WifiCredentialSpecifics& proto) { | |
896 VISIT_BYTES(ssid); | |
897 VISIT_ENUM(security_class); | |
898 VISIT_BYTES(passphrase); | |
898 } | 899 } |
899 | 900 |
900 } // namespace syncer | 901 } // namespace syncer |
901 | 902 |
902 #undef VISIT_ | 903 #undef VISIT_ |
903 #undef VISIT_BYTES | 904 #undef VISIT_BYTES |
904 #undef VISIT_ENUM | 905 #undef VISIT_ENUM |
905 #undef VISIT | 906 #undef VISIT |
906 #undef VISIT_REP | 907 #undef VISIT_REP |
907 | 908 |
908 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ | 909 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ |
OLD | NEW |