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

Side by Side Diff: sync/engine/non_blocking_sync_common.h

Issue 280983002: Implement sync in the NonBlockingTypeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed many comments Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« no previous file with comments | « sync/engine/model_thread_sync_entity_unittest.cc ('k') | sync/engine/non_blocking_sync_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698