Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_ | |
| 6 #define SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/time/time.h" | |
| 12 #include "sync/base/sync_export.h" | |
| 13 #include "sync/protocol/sync.pb.h" | |
| 14 | |
| 15 namespace syncer { | |
| 16 | |
| 17 struct SYNC_EXPORT_PRIVATE DataTypeState { | |
| 18 DataTypeState(); | |
| 19 ~DataTypeState(); | |
| 20 | |
| 21 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
| |
| 22 sync_pb::DataTypeContext type_context; | |
| 23 std::string parent_id; | |
| 24 int64 next_id; | |
| 25 }; | |
| 26 | |
| 27 struct SYNC_EXPORT_PRIVATE CommitRequestData { | |
| 28 CommitRequestData(); | |
| 29 ~CommitRequestData(); | |
| 30 | |
| 31 std::string id; | |
| 32 std::string client_tag_hash; | |
| 33 int64 sequence_number; | |
| 34 int64 base_version; | |
| 35 base::Time ctime; | |
| 36 base::Time mtime; | |
| 37 std::string non_unique_name; | |
| 38 bool deleted; | |
| 39 sync_pb::EntitySpecifics specifics; | |
| 40 }; | |
| 41 | |
| 42 struct SYNC_EXPORT_PRIVATE CommitResponseData { | |
| 43 CommitResponseData(); | |
| 44 ~CommitResponseData(); | |
| 45 | |
| 46 std::string id; | |
| 47 std::string client_tag_hash; | |
| 48 int64 sequence_number; | |
| 49 int64 response_version; | |
| 50 }; | |
| 51 | |
| 52 struct SYNC_EXPORT_PRIVATE UpdateResponseData { | |
| 53 UpdateResponseData(); | |
| 54 ~UpdateResponseData(); | |
| 55 | |
| 56 std::string id; | |
| 57 std::string client_tag_hash; | |
| 58 int64 response_version; | |
| 59 base::Time ctime; | |
| 60 base::Time mtime; | |
| 61 std::string non_unique_name; | |
| 62 bool deleted; | |
| 63 sync_pb::EntitySpecifics specifics; | |
| 64 }; | |
| 65 | |
| 66 typedef std::vector<CommitRequestData> CommitRequestDataList; | |
| 67 typedef std::vector<CommitResponseData> CommitResponseDataList; | |
| 68 typedef std::vector<UpdateResponseData> UpdateResponseDataList; | |
| 69 | |
| 70 } // namespace syncer | |
| 71 | |
| 72 #endif // SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_ | |
| OLD | NEW |