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

Unified Diff: sync/api/sync_change_processor.h

Issue 23129007: sync: Add GetAllSyncData to sync/api (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 7 years, 3 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
« no previous file with comments | « chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc ('k') | sync/api/syncable_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/sync_change_processor.h
diff --git a/sync/api/sync_change_processor.h b/sync/api/sync_change_processor.h
index c2dad3f906570cf9cb1acf20695569c8ecc3acfe..69494f0849ca42f6b8e9dd9760aa39073de06594 100644
--- a/sync/api/sync_change_processor.h
+++ b/sync/api/sync_change_processor.h
@@ -7,8 +7,10 @@
#include <vector>
+#include "sync/api/sync_data.h"
#include "sync/api/sync_error.h"
#include "sync/base/sync_export.h"
+#include "sync/internal_api/public/base/model_type.h"
namespace tracked_objects {
class Location;
@@ -36,6 +38,14 @@ class SYNC_EXPORT SyncChangeProcessor {
virtual SyncError ProcessSyncChanges(
const tracked_objects::Location& from_here,
const SyncChangeList& change_list) = 0;
+
+ // Fills a list of SyncData. This should create an up to date representation
+ // of all the data known to the ChangeProcessor for |datatype|, and
+ // should match/be a subset of the server's view of that datatype.
+ //
+ // WARNING: This can be a potentially slow & memory intensive operation and
+ // should only be used when absolutely necessary / sparingly.
+ virtual SyncDataList GetAllSyncData(ModelType type) const = 0;
};
} // namespace syncer
« no previous file with comments | « chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc ('k') | sync/api/syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698