|
sync: Introduce classes for per-type counters
Introduces the classes required to support per-type debug information.
This system will eventually replace much of the StatusController and
ModelNeutralState.
Adds three counter objects. There is one for counters incremented
during a GetUpdates, one for counters incremented during a commit, and
one for "status" indicators like the total number of sync entities.
Adds the DirectoryTypeDebugInfoEmitter, which will manage these
counters. There will be one instance of this object per enabled
directory-style sync ModelType. It owns the counters that will be
updated by the CommitContributors and UpdateHandlers. It also
collaborates with the ModelTypeRegistry to allow these
CommitContributors and UpdateHandlers to notify observers of updated
counter state.
Adds the TypeDebugInfoObserver, the interface for classes that listen
for counter updates.
At the moment, this code won't actually do much. The counters are never
incrememnted, no observers register for counter change events, and no
such events are generated. Those pieces will be added in future
commits.
BUG= 328606
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266991
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+446 lines, -79 lines) |
Patch |
 |
M |
sync/engine/directory_type_debug_info_emitter.h
|
View
|
1
2
|
1 chunk |
+0 lines, -34 lines |
0 comments
|
Download
|
 |
M |
sync/engine/directory_type_debug_info_emitter.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/sessions/commit_counters.h
|
View
|
1
2
3
4
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/sessions/commit_counters.cc
|
View
|
1
2
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/sessions/status_counters.h
|
View
|
1
2
3
4
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/sessions/status_counters.cc
|
View
|
1
2
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/sessions/type_debug_info_observer.h
|
View
|
1
2
3
4
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
sync/internal_api/public/sessions/type_debug_info_observer.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/sessions/update_counters.h
|
View
|
1
2
3
4
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/sessions/update_counters.cc
|
View
|
1
2
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.cc
|
View
|
1
2
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
sync/sessions/directory_type_debug_info_emitter.h
|
View
|
1
2
3
4
|
1 chunk |
+96 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/sessions/directory_type_debug_info_emitter.cc
|
View
|
1
2
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.h
|
View
|
1
2
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/sync_core.gypi
|
View
|
1
2
|
6 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/sync_internal_api.gypi
|
View
|
1
2
3
|
2 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|