|
sync: Per-type update application
This change moves the update application functionality from the
ApplyUpdatesAndResolveConflictsCommand into the
SyncDirectoryUpdateHandler class. This change will allow us to
implement update application differently for different types.
Because update application happens on the model threads, the
ApplyUpdatesAndResolveConflictsCommand had to be aware of
ModelSafeRoutingInfo, ModelSafeWorkers, and other concepts intended to
hide threading details. The new code takes a different approach. It
hides the threading details specific to each type inside its
SyncDirectoryUpateHandler by initializing it with a scoped_refptr to its
associated ModelSafeWorker.
The ApplyUpdatesAndResolveConflictsCommand was the last SyncerCommand.
With its removal, we can also remove the definitions of SyncerCommand,
ModelChangingSyncerCommand and SyncerCommandTest.
BUG= 278484
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238532
Total comments: 18
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+833 lines, -1367 lines) |
Patch |
 |
D |
sync/engine/apply_updates_and_resolve_conflicts_command.h
|
View
|
|
1 chunk |
+0 lines, -33 lines |
0 comments
|
Download
|
 |
D |
sync/engine/apply_updates_and_resolve_conflicts_command.cc
|
View
|
|
1 chunk |
+0 lines, -134 lines |
0 comments
|
Download
|
 |
D |
sync/engine/apply_updates_and_resolve_conflicts_command_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -415 lines |
0 comments
|
Download
|
 |
M |
sync/engine/download_unittest.cc
|
View
|
1
2
|
3 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/engine/get_commit_ids.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
D |
sync/engine/model_changing_syncer_command.h
|
View
|
|
1 chunk |
+0 lines, -76 lines |
0 comments
|
Download
|
 |
D |
sync/engine/model_changing_syncer_command.cc
|
View
|
|
1 chunk |
+0 lines, -51 lines |
0 comments
|
Download
|
 |
D |
sync/engine/model_changing_syncer_command_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -88 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_directory_update_handler.h
|
View
|
1
|
5 chunks |
+17 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_directory_update_handler.cc
|
View
|
1
|
2 chunks |
+93 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_directory_update_handler_unittest.cc
|
View
|
1
2
|
10 chunks |
+628 lines, -13 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_engine_event.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler_impl.cc
|
View
|
1
2
|
5 chunks |
+10 lines, -13 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer.h
|
View
|
|
1 chunk |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer.cc
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
D |
sync/engine/syncer_command.h
|
View
|
|
1 chunk |
+0 lines, -47 lines |
0 comments
|
Download
|
 |
D |
sync/engine/syncer_command.cc
|
View
|
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_unittest.cc
|
View
|
1
2
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/engine/update_applicator.h
|
View
|
|
2 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
 |
M |
sync/engine/update_applicator.cc
|
View
|
|
3 chunks |
+1 line, -29 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/util/syncer_error.h
|
View
|
|
1 chunk |
+1 line, -9 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl_unittest.cc
|
View
|
1
2
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/status_controller.h
|
View
|
1
2
|
3 chunks |
+7 lines, -49 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/status_controller.cc
|
View
|
1
2
|
2 chunks |
+1 line, -9 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/status_controller_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session.h
|
View
|
1
2
|
1 chunk |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_context.h
|
View
|
|
5 chunks |
+12 lines, -19 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_context.cc
|
View
|
|
2 chunks |
+20 lines, -14 lines |
0 comments
|
Download
|
 |
M |
sync/sync_core.gypi
|
View
|
|
3 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/sync_tests.gypi
|
View
|
1
2
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/directory.h
|
View
|
1
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/directory.cc
|
View
|
|
1 chunk |
+2 lines, -10 lines |
0 comments
|
Download
|
 |
D |
sync/test/engine/syncer_command_test.h
|
View
|
1
2
|
1 chunk |
+0 lines, -189 lines |
0 comments
|
Download
|
 |
D |
sync/test/engine/syncer_command_test.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -83 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|