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

Unified Diff: sync/api/metadata_batch.h

Issue 1678343002: [Sync] Moving DataTypeState to proto for serialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update for Pavel and merging with Max's changes. Created 4 years, 10 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 | sync/api/metadata_batch.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/metadata_batch.h
diff --git a/sync/api/metadata_batch.h b/sync/api/metadata_batch.h
index 56ab2a70bc2ccaaa732c2b236c10188c6bfc6942..dd4b8d0c7dec338988274ea73d2cfd052fcc9f59 100644
--- a/sync/api/metadata_batch.h
+++ b/sync/api/metadata_batch.h
@@ -6,9 +6,10 @@
#define SYNC_API_METADATA_BATCH_H_
#include <map>
+#include <string>
#include "sync/base/sync_export.h"
-#include "sync/internal_api/public/non_blocking_sync_common.h"
+#include "sync/protocol/data_type_state.pb.h"
#include "sync/protocol/entity_metadata.pb.h"
namespace syncer_v2 {
@@ -32,14 +33,14 @@ class SYNC_EXPORT MetadataBatch {
const sync_pb::EntityMetadata& metadata);
// Get the DataTypeState for this batch.
- const DataTypeState& GetDataTypeState() const;
+ const sync_pb::DataTypeState& GetDataTypeState() const;
// Set the DataTypeState for this batch.
- void SetDataTypeState(const DataTypeState& state);
+ void SetDataTypeState(const sync_pb::DataTypeState& state);
private:
EntityMetadataMap metadata_map_;
- DataTypeState state_;
+ sync_pb::DataTypeState state_;
};
} // namespace syncer_v2
« no previous file with comments | « no previous file | sync/api/metadata_batch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698