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

Unified Diff: components/sync/api/data_batch.h

Issue 2222373003: [Sync] Adding storage key concept for ModelTypeServices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing redundant hash value. Created 4 years, 4 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 | « no previous file | components/sync/api/entity_change.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/data_batch.h
diff --git a/components/sync/api/data_batch.h b/components/sync/api/data_batch.h
index 476f882f220fb7176d39edd9670a94a04f2c4c48..0ca64a4ee519da38560361b358f90aac43a90685 100644
--- a/components/sync/api/data_batch.h
+++ b/components/sync/api/data_batch.h
@@ -15,7 +15,7 @@
namespace syncer_v2 {
-typedef std::pair<std::string, std::unique_ptr<EntityData>> TagAndData;
+typedef std::pair<std::string, std::unique_ptr<EntityData>> KeyAndData;
// Interface used by the processor to read data requested from the service.
class SYNC_EXPORT DataBatch {
@@ -29,7 +29,7 @@ class SYNC_EXPORT DataBatch {
// Returns a pair of storage tag and owned entity data object. Invoking this
// method will remove the pair from the batch, and should not be called if
// HasNext() returns false.
- virtual TagAndData Next() = 0;
+ virtual KeyAndData Next() = 0;
};
} // namespace syncer_v2
« no previous file with comments | « no previous file | components/sync/api/entity_change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698