|
Implement new invalidations ack tracking system
Enable the new invalidation ack tracking API. This system allows the
invalidations system to remember invalidations that have not been acted upon
yet across browser restarts.
New features include:
- Supports saving multiple invalidation payloads per ObjectID.
- Supports tracking lost or dropped invalidations.
- Remembers "unknown version" invalidations across restarts.
- Can send multiple payloads in a single callback.
- Does not periodically ping unacked invalidations.
A series of commits prior to this one have put much of the framework in place
already. This CL does not change the types and signatures of client-facing
APIs very much, but it does enable perviously disbaled behavior. This CL
includes updates to the client code to allow them to support the new semantics
with (hopefully) few changes to externally visible behavior.
Most of the big changes are in the classes and tests associated with the
internals of Invalidations. Large parts of the SyncInvalidationListener and
InvalidatorStorage have been rewritten.
BUG= 233437
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237421
Total comments: 29
Total comments: 4
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1224 lines, -2622 lines) |
Patch |
 |
M |
chrome/browser/drive/drive_notification_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/push_messaging/DEPS
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h
|
View
|
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc
|
View
|
1
2
3
4
|
3 chunks |
+26 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_unittest.cc
|
View
|
|
5 chunks |
+43 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/fake_invalidation_service.h
|
View
|
|
3 chunks |
+10 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/fake_invalidation_service.cc
|
View
|
|
3 chunks |
+20 lines, -37 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/invalidation_service.h
|
View
|
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/invalidation_service_android.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/invalidation_service_android.cc
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/invalidator_storage.h
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -26 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/invalidator_storage.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+47 lines, -245 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/invalidator_storage_unittest.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+36 lines, -438 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/p2p_invalidation_service.h
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/p2p_invalidation_service.cc
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/ticl_invalidation_service.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/ticl_invalidation_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+1 line, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud/DEPS
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud/cloud_policy_invalidator.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud/cloud_policy_invalidator.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+18 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
24 chunks |
+75 lines, -64 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_core.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_core.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_impl.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_impl.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler.h
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/base/invalidation.h
|
View
|
7
8
9
|
1 chunk |
+30 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/base/invalidation.cc
|
View
|
1
7
8
9
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/base/model_type_test_util.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
D |
sync/notifier/ack_tracker.h
|
View
|
|
1 chunk |
+0 lines, -111 lines |
0 comments
|
Download
|
 |
D |
sync/notifier/ack_tracker.cc
|
View
|
|
1 chunk |
+0 lines, -221 lines |
0 comments
|
Download
|
 |
D |
sync/notifier/ack_tracker_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -352 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/fake_invalidation_handler.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/fake_invalidation_state_tracker.h
|
View
|
|
1 chunk |
+4 lines, -14 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/fake_invalidation_state_tracker.cc
|
View
|
|
2 chunks |
+9 lines, -50 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/fake_invalidator.h
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/fake_invalidator.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidation_handler.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidation_notifier.h
|
View
|
|
6 chunks |
+2 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidation_notifier.cc
|
View
|
|
3 chunks |
+4 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidation_notifier_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidation_state_tracker.h
|
View
|
1
2
3
4
5
|
3 chunks |
+7 lines, -44 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidation_state_tracker.cc
|
View
|
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidator.h
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidator_registrar_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidator_test_template.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/notifier/mock_ack_handler.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/notifier/non_blocking_invalidator.h
|
View
|
|
3 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/non_blocking_invalidator.cc
|
View
|
|
8 chunks |
+6 lines, -27 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/non_blocking_invalidator_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/notifier/object_id_invalidation_map.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/object_id_invalidation_map.cc
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/p2p_invalidator.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/p2p_invalidator.cc
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/p2p_invalidator_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/notifier/sync_invalidation_listener.h
|
View
|
1
2
3
4
5
6
|
9 chunks |
+34 lines, -31 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/sync_invalidation_listener.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
14 chunks |
+118 lines, -174 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/sync_invalidation_listener_unittest.cc
|
View
|
|
22 chunks |
+424 lines, -314 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/unacked_invalidation_set.h
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
A |
sync/notifier/unacked_invalidation_set_test_util.h
|
View
|
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/notifier/unacked_invalidation_set_test_util.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+181 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/unacked_invalidation_set_unittest.cc
|
View
|
|
4 chunks |
+4 lines, -176 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/nudge_tracker.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/sessions/nudge_tracker_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sync_internal_api.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sync_notifier.gypi
|
View
|
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/sync_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/test/engine/mock_connection_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
sync/tools/null_invalidation_state_tracker.h
|
View
|
1
|
1 chunk |
+4 lines, -13 lines |
0 comments
|
Download
|
 |
M |
sync/tools/null_invalidation_state_tracker.cc
|
View
|
1
|
2 chunks |
+6 lines, -32 lines |
0 comments
|
Download
|
 |
M |
sync/tools/sync_client.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/tools/sync_listen_notifications.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 23 (0 generated)
|