|
sync: Refactor per-datatype throttling
This CL pulls the code to track throttled data types out of the sync
session context and into a class meant for that purpose. This new
class, ThrottledDataTypeTracker, also implements code to notify the
AllStatus object whenever the set of throttled datatypes is changed.
The fact that ThrottledDataTypeTracker, which lives in sync/engine,
references AllStatus caused some problems with DEPS checks. After a few
iterations during code review, this commit now includes the following
additional changes:
- Move all_status.{cc,h} from sync/internal_api to sync/engine.
- Move the SyncManager::Status inner class out of SyncManager and into
sync/internal_api/public/engine/sync_status.{cc,h}. The class has
been renamed to SyncStatus.
This CL does not include code to expose the throttled status on the
chrome://sync page, though it does contain functionality we will use to
implement it in a future commit.
BUG= 125065
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141992
Total comments: 24
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+452 lines, -542 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/sync_backend_host.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sync_ui_util.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/all_status.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/all_status.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/engine/get_commit_ids_command.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler_unittest.cc
|
View
|
1
2
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler_whitebox_unittest.cc
|
View
|
1
2
|
4 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_proto_util.h
|
View
|
1
2
3
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_proto_util.cc
|
View
|
1
2
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_proto_util_unittest.cc
|
View
|
1
2
|
4 chunks |
+9 lines, -16 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_unittest.cc
|
View
|
1
2
|
5 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
A |
sync/engine/throttled_data_type_tracker.h
|
View
|
1
2
|
1 chunk |
+55 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/throttled_data_type_tracker.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/engine/throttled_data_type_tracker_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+67 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/all_status.h
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -82 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/all_status.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -166 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/engine/sync_status.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+94 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/engine/sync_status.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager.h
|
View
|
1
2
3
4
5
|
3 chunks |
+2 lines, -70 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager.cc
|
View
|
1
2
3
4
5
|
8 chunks |
+9 lines, -34 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_context.h
|
View
|
1
2
|
6 chunks |
+9 lines, -27 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_context.cc
|
View
|
1
2
|
4 chunks |
+3 lines, -43 lines |
0 comments
|
Download
|
 |
D |
sync/sessions/sync_session_context_unittest.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -45 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_unittest.cc
|
View
|
1
2
|
4 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sync.gyp
|
View
|
1
2
3
4
5
|
8 chunks |
+24 lines, -20 lines |
0 comments
|
Download
|
 |
M |
sync/test/engine/syncer_command_test.h
|
View
|
1
2
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|