|
Implement sync in the NonBlockingTypeProcessor
Introduces the NonBlockingTypeProcessor's sync logic. When combined
with the NonBlockingTypeProcessorCore's sync logic (which will be
introduced in a follow-up commit), this will be an alternative to the
existing sync engine implemented with DirectoryUpdateHandler and
DirectoryCommitContributor.
Adds non_blocking_sync_common.h, which defines structs to be used to
pass messages between the processor and processor core.
Adds DataTypeState as a parameter to the processor to processor core
connection methods. Eventually this will be used to initialize the
processor core with state that the processor loaded from disk.
Adds a lot of unit tests and unit test framework intrastructure. The
NonBlockingTypeProcessor and NonBlockingTypeProcessorCore's
communications with each other will be very racy. These tests are
intended to help manage the complexity this will cause by allowing us to
test all the possible race conditions individually.
BUG= 351005
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272329
Total comments: 5
Total comments: 54
Total comments: 2
Total comments: 1
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1559 lines, -51 lines) |
Patch |
 |
M |
components/sync_driver/non_blocking_data_type_controller_unittest.cc
|
View
|
1
|
5 chunks |
+35 lines, -5 lines |
0 comments
|
Download
|
 |
A |
sync/engine/model_thread_sync_entity.h
|
View
|
1
2
3
4
5
|
1 chunk |
+186 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/model_thread_sync_entity.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+157 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/model_thread_sync_entity_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+178 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/non_blocking_sync_common.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+98 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/non_blocking_sync_common.cc
|
View
|
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/non_blocking_type_processor.h
|
View
|
1
2
3
|
3 chunks |
+42 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/engine/non_blocking_type_processor.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+142 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/engine/non_blocking_type_processor_core.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/non_blocking_type_processor_core.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/non_blocking_type_processor_core_interface.h
|
View
|
1
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/non_blocking_type_processor_core_interface.cc
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/non_blocking_type_processor_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+524 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/sync_core_proxy.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/test/null_sync_core_proxy.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_core.h
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_core.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_core_proxy_impl.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_core_proxy_impl.cc
|
View
|
|
2 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/test/null_sync_core_proxy.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+49 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry_unittest.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+32 lines, -12 lines |
0 comments
|
Download
|
 |
M |
sync/sync_core.gypi
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sync_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 22 (0 generated)
|