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

Unified Diff: components/sync/protocol/proto_visitors.h

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/protocol/proto_visitors.h
diff --git a/components/sync/protocol/proto_visitors.h b/components/sync/protocol/proto_visitors.h
index a5634f1ce7c35917e50db2dfe73b9c3ea8b144dd..8abb63b7e6753dbb33308dbf8e1dbe8c2ae29766 100644
--- a/components/sync/protocol/proto_visitors.h
+++ b/components/sync/protocol/proto_visitors.h
@@ -170,6 +170,7 @@ void VisitProtoFields(V& visitor, const sync_pb::PasswordSpecificsData& proto) {
VISIT(username_element);
VISIT(username_value);
VISIT(password_element);
+ VISIT(password_value);
VISIT(preferred);
VISIT(date_created);
VISIT(blacklisted);
@@ -386,6 +387,18 @@ void VisitProtoFields(V& visitor, const sync_pb::GcmInvalidationsFlags& proto) {
}
template <class V>
+void VisitProtoFields(V& visitor,
+ const sync_pb::EnhancedBookmarksFlags& proto) {
+ VISIT(enabled);
+ VISIT(extension_id);
+}
+
+template <class V>
+void VisitProtoFields(V& visitor, const sync_pb::WalletSyncFlags& proto) {
+ VISIT(enabled);
+}
+
+template <class V>
void VisitProtoFields(V& visitor, const sync_pb::ExperimentsSpecifics& proto) {
VISIT(keystore_encryption);
VISIT(history_delete_directives);
@@ -394,6 +407,8 @@ void VisitProtoFields(V& visitor, const sync_pb::ExperimentsSpecifics& proto) {
VISIT(favicon_sync);
VISIT(gcm_channel);
VISIT(gcm_invalidations);
+ VISIT(obsolete_enhanced_bookmarks);
+ VISIT(obsolete_wallet_sync);
}
template <class V>
@@ -464,6 +479,8 @@ void VisitProtoFields(V& visitor, const sync_pb::ManagedUserSpecifics& proto) {
VISIT(master_key);
VISIT(chrome_avatar);
VISIT(chromeos_avatar);
+ VISIT(password_signature_key);
+ VISIT(password_encryption_key);
}
template <class V>
@@ -522,12 +539,19 @@ void VisitProtoFields(V& visitor, const sync_pb::ArticleSpecifics& proto) {
VISIT(entry_id);
VISIT(title);
VISIT_REP(pages);
+ VISIT(attachments);
+}
+
+template <class V>
+void VisitProtoFields(V& visitor, const sync_pb::ArticleAttachments& proto) {
+ VISIT(distilled_article);
}
template <class V>
void VisitProtoFields(V& visitor, const sync_pb::PasswordSpecifics& proto) {
VISIT(encrypted);
VISIT(unencrypted_metadata);
+ VISIT(client_only_encrypted_data);
pavely 2016/10/28 22:55:32 We shouldn't convert client_only_encrypted_data to
}
template <class V>
@@ -658,6 +682,7 @@ void VisitProtoFields(V& visitor,
template <class V>
void VisitProtoFields(V& visitor, const sync_pb::EntitySpecifics& proto) {
+ VISIT(encrypted);
VISIT(app);
VISIT(app_list);
VISIT(app_notification);
@@ -697,6 +722,14 @@ void VisitProtoFields(V& visitor, const sync_pb::EntitySpecifics& proto) {
}
template <class V>
+void VisitProtoFields(V& visitor,
+ const sync_pb::SyncEntity::BookmarkData& proto) {
+ VISIT(bookmark_folder);
+ VISIT(bookmark_url);
+ VISIT(bookmark_favicon);
+}
+
+template <class V>
void VisitProtoFields(V& visitor, const sync_pb::SyncEntity& proto) {
VISIT(id_string);
VISIT(parent_id_string);
@@ -718,6 +751,8 @@ void VisitProtoFields(V& visitor, const sync_pb::SyncEntity& proto) {
VISIT(folder);
VISIT(client_defined_unique_tag);
VISIT_REP(attachment_id);
+ VISIT_BYTES(ordinal_in_parent);
+ VISIT(bookmarkdata);
}
template <class V>
@@ -876,6 +911,8 @@ void VisitProtoFields(V& visitor,
VISIT(download_time_us);
VISIT(association_wait_time_for_high_priority_us);
VISIT(association_wait_time_for_same_priority_us);
+ VISIT_REP(high_priority_type_configured_before);
+ VISIT_REP(same_priority_type_configured_before);
}
template <class V>
@@ -904,6 +941,7 @@ void VisitProtoFields(V& visitor,
VISIT(num_updates_downloaded);
VISIT(num_reflected_updates_downloaded);
VISIT(caller_info);
+ VISIT_REP(source_info);
}
template <class V>
@@ -919,6 +957,18 @@ void VisitProtoFields(V& visitor, const sync_pb::AttachmentIdProto& proto) {
}
template <class V>
+void VisitProtoFields(V& visitor,
+ const sync_pb::AttachmentMetadataRecord& proto) {
+ VISIT(id);
+ VISIT(is_on_server);
+}
+
+template <class V>
+void VisitProtoFields(V& visitor, const sync_pb::AttachmentMetadata& proto) {
+ VISIT_REP(record);
+}
+
+template <class V>
void VisitProtoFields(V& visitor, const sync_pb::EntityMetadata& proto) {
VISIT(client_tag_hash);
VISIT(server_id);
@@ -932,6 +982,26 @@ void VisitProtoFields(V& visitor, const sync_pb::EntityMetadata& proto) {
VISIT(base_specifics_hash);
}
+template <class V>
+void VisitProtoFields(V& visitor, const sync_pb::UniquePosition& proto) {
+ VISIT_BYTES(value);
+ VISIT_BYTES(compressed_value);
+ VISIT(uncompressed_length);
+ VISIT_BYTES(custom_compressed_v1);
+}
+
+template <class V>
+void VisitProtoFields(V& visitor, const sync_pb::TypeHint& proto) {
+ VISIT(data_type_id);
+ VISIT(has_valid_hint);
+}
+
+template <class V>
+void VisitProtoFields(V& visitor, const sync_pb::SourceInfo& proto) {
+ VISIT_ENUM(source);
+ VISIT_REP(type_hint);
+}
+
} // namespace syncer
#undef VISIT_

Powered by Google App Engine
This is Rietveld 408576698