Chromium Code Reviews| Index: sync/engine/non_blocking_sync_common.h |
| diff --git a/sync/engine/non_blocking_sync_common.h b/sync/engine/non_blocking_sync_common.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..240a95618f199ec13bd7f60d45401f1a4bb96f17 |
| --- /dev/null |
| +++ b/sync/engine/non_blocking_sync_common.h |
| @@ -0,0 +1,72 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_ |
| +#define SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "base/time/time.h" |
| +#include "sync/base/sync_export.h" |
| +#include "sync/protocol/sync.pb.h" |
| + |
| +namespace syncer { |
| + |
| +struct SYNC_EXPORT_PRIVATE DataTypeState { |
| + DataTypeState(); |
| + ~DataTypeState(); |
| + |
| + sync_pb::DataTypeProgressMarker progress_marker; |
|
Nicolas Zea
2014/05/20 21:51:08
I'd prefer to have comments for all these fields.
rlarocque
2014/05/20 22:29:21
I've added a bunch around DataTypeState. I think
|
| + sync_pb::DataTypeContext type_context; |
| + std::string parent_id; |
| + int64 next_id; |
| +}; |
| + |
| +struct SYNC_EXPORT_PRIVATE CommitRequestData { |
| + CommitRequestData(); |
| + ~CommitRequestData(); |
| + |
| + std::string id; |
| + std::string client_tag_hash; |
| + int64 sequence_number; |
| + int64 base_version; |
| + base::Time ctime; |
| + base::Time mtime; |
| + std::string non_unique_name; |
| + bool deleted; |
| + sync_pb::EntitySpecifics specifics; |
| +}; |
| + |
| +struct SYNC_EXPORT_PRIVATE CommitResponseData { |
| + CommitResponseData(); |
| + ~CommitResponseData(); |
| + |
| + std::string id; |
| + std::string client_tag_hash; |
| + int64 sequence_number; |
| + int64 response_version; |
| +}; |
| + |
| +struct SYNC_EXPORT_PRIVATE UpdateResponseData { |
| + UpdateResponseData(); |
| + ~UpdateResponseData(); |
| + |
| + std::string id; |
| + std::string client_tag_hash; |
| + int64 response_version; |
| + base::Time ctime; |
| + base::Time mtime; |
| + std::string non_unique_name; |
| + bool deleted; |
| + sync_pb::EntitySpecifics specifics; |
| +}; |
| + |
| +typedef std::vector<CommitRequestData> CommitRequestDataList; |
| +typedef std::vector<CommitResponseData> CommitResponseDataList; |
| +typedef std::vector<UpdateResponseData> UpdateResponseDataList; |
| + |
| +} // namespace syncer |
| + |
| +#endif // SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_ |