|
[Sync] Make P2PNotifier behave more like InvalidationNotifier
Encode the changed types into the XMPP push message and nudge only for those data types.
Filter out notifications sent from the originating client.
Instead of calling observers directly, synthesize a notification and send it to the server with target = self only.
BUG= 92928
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98551
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+651 lines, -158 lines) |
Patch |
 |
M |
chrome/browser/sync/internal_api/sync_manager.cc
|
View
|
1
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/internal_api/syncapi_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/notifier/invalidation_notifier.h
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/notifier/invalidation_notifier.cc
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/notifier/invalidation_notifier_unittest.cc
|
View
|
1
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/notifier/non_blocking_invalidation_notifier.h
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/notifier/non_blocking_invalidation_notifier.cc
|
View
|
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/notifier/p2p_notifier.h
|
View
|
1
|
3 chunks |
+64 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/notifier/p2p_notifier.cc
|
View
|
1
2
|
4 chunks |
+191 lines, -34 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/sync/notifier/p2p_notifier_unittest.cc
|
View
|
1
|
1 chunk |
+259 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/notifier/sync_notifier.h
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/notifier/sync_notifier_factory.cc
|
View
|
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/syncable/model_type.h
|
View
|
|
3 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/syncable/model_type.cc
|
View
|
|
2 chunks |
+8 lines, -24 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/syncable/model_type_payload_map.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/syncable/model_type_payload_map.cc
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/syncable/model_type_payload_map_unittest.cc
|
View
|
|
1 chunk |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/syncable/model_type_unittest.cc
|
View
|
|
2 chunks |
+11 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/migration_errors_test.cc
|
View
|
1
|
7 chunks |
+18 lines, -9 lines |
0 comments
|
Download
|
 |
M |
jingle/notifier/listener/push_notifications_listen_task.cc
|
View
|
1
2
3
4
|
4 chunks |
+25 lines, -26 lines |
0 comments
|
Download
|
 |
M |
jingle/notifier/listener/push_notifications_send_update_task.cc
|
View
|
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
jingle/notifier/listener/push_notifications_send_update_task_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|