|
USS SyncContextProxy / data type activation refactoring
This refactoring prepares the code to introduction of
NonBlockingDataTypeController for USS datatypes. The goal
was to split the very large NonBlockingDataTypeController
change into a couple of smaller to make it easier to review
and verify.
The following changes are included here:
1) Introduced ActivationContext which is a structure that
contains all arguments needed to activate a USS datatype.
For now ActivationContext is passed via SyncContext /
SyncContextProxy, but the goal is to pass it directly
via BackendDataTypeConfigurer as an argument for
ActivateNonBlockingDataType.
ActivationContext is needed as a separate class because
NonBlockingDataTypeController will have to receive it
from the type processor's callback and temporarily hold
on to it.
2) BackendDataTypeConfigurer - two activation methods are
renamed to be directory specific and two more activation
methods for non-blocking data types are added.
3) DataTypeController cleanup - OnModelLoaded() virtual
method shouldn't be on the base class because it applies
only to some of the subclasses and is never invoked via the
base class.
BUG= 515962
Committed: https://crrev.com/a4e4a10e92844d0274895c1d078d9119fa76f041
Cr-Commit-Position: refs/heads/master@{#351110}
Total comments: 17
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+231 lines, -168 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/non_frontend_data_type_controller.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/non_frontend_data_type_controller.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/non_frontend_data_type_controller_mock.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_impl.h
|
View
|
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_impl.cc
|
View
|
1
|
2 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_mock.h
|
View
|
|
1 chunk |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_mock.cc
|
View
|
1
|
2 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_driver/backend_data_type_configurer.h
|
View
|
|
2 chunks |
+18 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_controller.h
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_impl_unittest.cc
|
View
|
|
2 chunks |
+15 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/directory_data_type_controller.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/fake_data_type_controller.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_driver/fake_data_type_controller.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/frontend_data_type_controller.h
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/frontend_data_type_controller_mock.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_driver/non_blocking_data_type_controller_unittest.cc
|
View
|
1
|
4 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/non_ui_data_type_controller.h
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/non_ui_data_type_controller_mock.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_driver/proxy_data_type_controller.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/proxy_data_type_controller.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/ui_data_type_controller.h
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/BUILD.gn
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/model_type_processor_impl.cc
|
View
|
1
|
2 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/engine/model_type_processor_impl_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
sync/internal_api/activation_context.cc
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/activation_context.h
|
View
|
1
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/sync_context.h
|
View
|
1
|
3 chunks |
+4 lines, -11 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/sync_context_proxy.h
|
View
|
1
|
2 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/test/null_sync_context_proxy.h
|
View
|
|
2 chunks |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_context_proxy_impl.h
|
View
|
1
|
2 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_context_proxy_impl.cc
|
View
|
1
|
2 chunks |
+6 lines, -13 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/test/null_sync_context_proxy.cc
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.h
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.cc
|
View
|
1
|
2 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry_unittest.cc
|
View
|
1
|
6 chunks |
+39 lines, -18 lines |
0 comments
|
Download
|
 |
M |
sync/sync.gyp
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/test/engine/injectable_sync_context_proxy.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
sync/test/engine/injectable_sync_context_proxy.cc
|
View
|
1
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
Total messages: 13 (6 generated)
|