|
sync: Introduce ModelTypeRegistry and helpers
Introduce the ModelTypeRegistry class and use it to manage the creation
of UpdateHandlers and CommitContributors. The ModelTypeRegistry also
gets some help from the newly introduced UpdaterList and CommitterList
classes.
This lets us move the verbose iteration logic out of the code that's
focused on building and executing commits and updates, which should make
those functions easier to read. It gives us more freedom to experiment
with other ways to manage the lists of commit contributors and update
handlers, should we choose to do so. It prevents us from leaking the
set of enabled types through the per-type maps.
This patch is one of the last in the stack related to building a
per-type abstraction into the sync engine, and also one of the first
steps towards implementing run-time enable and disable logic for the
new-style sync types.
BUG= 278484
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245654
Total comments: 2
Total comments: 16
Total comments: 23
Total comments: 10
Total comments: 16
Total comments: 2
Total comments: 8
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+789 lines, -528 lines) |
Patch |
 |
M |
sync/engine/commit.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/engine/commit.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+10 lines, -29 lines |
0 comments
|
Download
|
 |
A |
sync/engine/commit_processor.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/commit_processor.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/download.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
10 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/engine/download.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
12 chunks |
+25 lines, -119 lines |
0 comments
|
Download
|
 |
M |
sync/engine/download_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
12 chunks |
+20 lines, -21 lines |
0 comments
|
Download
|
 |
A |
sync/engine/get_updates_processor.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/get_updates_processor.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+148 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/process_updates_util.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+0 lines, -34 lines |
0 comments
|
Download
|
 |
M |
sync/engine/process_updates_util.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
6 chunks |
+30 lines, -56 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_directory_commit_contributor.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_directory_update_handler.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_directory_update_handler_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
9 chunks |
+36 lines, -12 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/internal_components_factory_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/internal_components_factory.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/internal_components_factory_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/test/test_internal_components_factory.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/test/test_internal_components_factory.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
A |
sync/sessions/model_type_registry.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+68 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/sessions/model_type_registry.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/sessions/model_type_registry_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+114 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_context.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
6 chunks |
+10 lines, -37 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_context.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+4 lines, -31 lines |
0 comments
|
Download
|
 |
D |
sync/sessions/sync_session_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -140 lines |
0 comments
|
Download
|
 |
M |
sync/sync_core.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+14 lines, -8 lines |
0 comments
|
Download
|
 |
M |
sync/sync_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 28 (0 generated)
|