|
sync: Implement per-type commit interface
Move most commit logic into per-type instances of
SyncDirectoryCommitContributor and SyncDirectoryCommitContribution
classes. Make GetCommitIdsCommand and ProcessCommitResponseCommand
into container classes with only static methods. Remove
OrderedCommitSet.
The point of these changes is to make way for different kinds of entity
committers. The SyncDirectoryCommitContributor and
SyncDirectoryCommitContribution will eventually refactored into
implementations of more generic "commit contributor" and "commit
contribution" interfaces.
This commit leaves us with some structures that might look a bit odd to
someone unfamiliar with the history of this code. In particular, many
of the old SyncerCommands look out of place. We plan to refactor them
in future CLs. For now, it's more important to make sure this CL has an
easy to read diff.
BUG= 278484
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228810
Total comments: 16
Total comments: 52
Total comments: 14
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1136 lines, -1960 lines) |
Patch |
 |
D |
sync/engine/build_commit_command.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -82 lines |
0 comments
|
Download
|
 |
D |
sync/engine/build_commit_command.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -225 lines |
0 comments
|
Download
|
 |
M |
sync/engine/commit.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+58 lines, -15 lines |
0 comments
|
Download
|
 |
M |
sync/engine/commit.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+129 lines, -150 lines |
0 comments
|
Download
|
 |
A |
sync/engine/commit_util.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/commit_util.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+232 lines, -179 lines |
0 comments
|
Download
|
 |
M |
sync/engine/get_commit_ids.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -18 lines |
0 comments
|
Download
|
 |
M |
sync/engine/get_commit_ids.cc
|
View
|
|
1 chunk |
+0 lines, -21 lines |
0 comments
|
Download
|
 |
D |
sync/engine/process_commit_response_command.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -120 lines |
0 comments
|
Download
|
 |
D |
sync/engine/process_commit_response_command.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -387 lines |
0 comments
|
Download
|
 |
D |
sync/engine/process_commit_response_command_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -363 lines |
0 comments
|
Download
|
 |
A |
sync/engine/sync_directory_commit_contribution.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+102 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/sync_directory_commit_contribution.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+164 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/sync_directory_commit_contribution_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+235 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/sync_directory_commit_contributor.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/sync_directory_commit_contributor.cc
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer.h
|
View
|
1
2
3
4
5
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+33 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -83 lines |
0 comments
|
Download
|
 |
D |
sync/sessions/ordered_commit_set.h
|
View
|
|
1 chunk |
+0 lines, -108 lines |
0 comments
|
Download
|
 |
D |
sync/sessions/ordered_commit_set.cc
|
View
|
|
1 chunk |
+0 lines, -93 lines |
0 comments
|
Download
|
 |
D |
sync/sessions/ordered_commit_set_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -101 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/status_controller.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_context.h
|
View
|
|
3 chunks |
+14 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_context.cc
|
View
|
|
2 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sync_core.gypi
|
View
|
1
2
3
4
5
6
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/sync_tests.gypi
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|