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_ | |
rlarocque
2014/05/13 23:20:29
These definitions are fairly trivial and only used
| |
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 { | |
rlarocque
2014/05/13 23:20:29
This struct might deserve its own file more than t
| |
18 DataTypeState(); | |
19 ~DataTypeState(); | |
20 | |
21 sync_pb::DataTypeProgressMarker progress_marker; | |
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; | |
33 int64 sequence_number; | |
34 int64 base_version; | |
35 base::Time ctime; | |
36 base::Time mtime; | |
37 bool deleted; | |
38 sync_pb::EntitySpecifics specifics; | |
39 }; | |
40 | |
41 struct SYNC_EXPORT_PRIVATE CommitResponseData { | |
42 CommitResponseData(); | |
43 ~CommitResponseData(); | |
44 | |
45 std::string id; | |
46 std::string client_tag_hash; | |
47 int64 sequence_number; | |
48 int64 response_version; | |
49 }; | |
50 | |
51 struct SYNC_EXPORT_PRIVATE UpdateResponseData { | |
52 UpdateResponseData(); | |
53 ~UpdateResponseData(); | |
54 | |
55 std::string id; | |
56 std::string client_tag_hash; | |
57 int64 response_version; | |
58 base::Time ctime; | |
59 base::Time mtime; | |
60 std::string non_unique_name; | |
61 bool deleted; | |
62 sync_pb::EntitySpecifics specifics; | |
63 }; | |
64 | |
65 typedef std::vector<CommitRequestData> CommitRequestDataList; | |
66 typedef std::vector<CommitResponseData> CommitResponseDataList; | |
67 typedef std::vector<UpdateResponseData> UpdateResponseDataList; | |
68 | |
69 } // namespace syncer | |
70 | |
71 #endif // SYNC_ENGINE_NON_BLOCKING_SYNC_COMMON_H_ | |
OLD | NEW |