Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Issue 10436013: [Sync] Make InvalidationNotifier use PushClient (Closed)

Created:
8 years, 7 months ago by akalin
Modified:
8 years, 6 months ago
Reviewers:
ghc, rlarocque1, rlarocque
CC:
chromium-reviews
Visibility:
Public.

Description

[Sync] Make InvalidationNotifier use PushClient This removes a lot of duplicated code and unifies the two main SyncNotifier implementations (P2P and Invalidation) to use the same underlying transport layer. Replace CacheInvalidationPacketHandler and ChromeNetwork with PushClientChannel. Add PushClient::CreateDefaultOnIOThread which creates an XmppPushClient directly. BUG=76764 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139508

Patch Set 1 #

Total comments: 3

Patch Set 2 : Sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -492 lines) Patch
M jingle/notifier/communicator/single_login_attempt.cc View 1 chunk +1 line, -0 lines 0 comments Download
M jingle/notifier/listener/push_client.h View 1 chunk +6 lines, -0 lines 0 comments Download
M jingle/notifier/listener/push_client.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M jingle/notifier/listener/push_client_unittest.cc View 2 chunks +9 lines, -2 lines 0 comments Download
D sync/notifier/cache_invalidation_packet_handler.h View 1 chunk +0 lines, -86 lines 0 comments Download
D sync/notifier/cache_invalidation_packet_handler.cc View 1 chunk +0 lines, -126 lines 0 comments Download
D sync/notifier/cache_invalidation_packet_handler_unittest.cc View 1 chunk +0 lines, -77 lines 0 comments Download
M sync/notifier/chrome_invalidation_client.h View 5 chunks +10 lines, -13 lines 0 comments Download
M sync/notifier/chrome_invalidation_client.cc View 4 chunks +11 lines, -17 lines 0 comments Download
M sync/notifier/chrome_invalidation_client_unittest.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M sync/notifier/chrome_system_resources.h View 4 chunks +9 lines, -34 lines 0 comments Download
M sync/notifier/chrome_system_resources.cc View 3 chunks +7 lines, -52 lines 0 comments Download
M sync/notifier/chrome_system_resources_unittest.cc View 2 chunks +4 lines, -1 line 0 comments Download
M sync/notifier/invalidation_notifier.h View 5 chunks +5 lines, -16 lines 0 comments Download
M sync/notifier/invalidation_notifier.cc View 4 chunks +13 lines, -54 lines 0 comments Download
M sync/notifier/invalidation_notifier_unittest.cc View 3 chunks +2 lines, -6 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.cc View 2 chunks +2 lines, -1 line 0 comments Download
A sync/notifier/push_client_channel.h View 1 chunk +100 lines, -0 lines 0 comments Download
A sync/notifier/push_client_channel.cc View 1 chunk +151 lines, -0 lines 0 comments Download
A sync/notifier/push_client_channel_unittest.cc View 1 chunk +247 lines, -0 lines 0 comments Download
M sync/sync.gyp View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
akalin
+rlarocque for everything +ghc for PushClientChannel (which implements invalidation::NetworkChannel).
8 years, 7 months ago (2012-05-24 00:04:12 UTC) #1
rlarocque
https://chromiumcodereview.appspot.com/10436013/diff/1/sync/notifier/chrome_invalidation_client.h File sync/notifier/chrome_invalidation_client.h (right): https://chromiumcodereview.appspot.com/10436013/diff/1/sync/notifier/chrome_invalidation_client.h#newcode58 sync/notifier/chrome_invalidation_client.h:58: scoped_ptr<notifier::PushClient> push_client); A scoped_ptr as a constructor parameter looks ...
8 years, 7 months ago (2012-05-24 00:44:49 UTC) #2
akalin
https://chromiumcodereview.appspot.com/10436013/diff/1/sync/notifier/chrome_invalidation_client.h File sync/notifier/chrome_invalidation_client.h (right): https://chromiumcodereview.appspot.com/10436013/diff/1/sync/notifier/chrome_invalidation_client.h#newcode58 sync/notifier/chrome_invalidation_client.h:58: scoped_ptr<notifier::PushClient> push_client); On 2012/05/24 00:44:49, rlarocque wrote: > A ...
8 years, 7 months ago (2012-05-24 00:48:27 UTC) #3
rlarocque
On 2012/05/24 00:48:27, akalin wrote: > https://chromiumcodereview.appspot.com/10436013/diff/1/sync/notifier/chrome_invalidation_client.h > File sync/notifier/chrome_invalidation_client.h (right): > > https://chromiumcodereview.appspot.com/10436013/diff/1/sync/notifier/chrome_invalidation_client.h#newcode58 > ...
8 years, 7 months ago (2012-05-24 01:15:25 UTC) #4
akalin
Greg, any comments? On 2012/05/24 01:15:25, rlarocque wrote: > On 2012/05/24 00:48:27, akalin wrote: > ...
8 years, 7 months ago (2012-05-24 23:21:45 UTC) #5
ghc
lgtm
8 years, 6 months ago (2012-05-29 14:23:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10436013/8001
8 years, 6 months ago (2012-05-30 01:06:43 UTC) #7
commit-bot: I haz the power
Try job failure for 10436013-8001 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-05-30 03:53:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10436013/8001
8 years, 6 months ago (2012-05-30 07:26:11 UTC) #9
commit-bot: I haz the power
8 years, 6 months ago (2012-05-30 09:10:29 UTC) #10
Change committed as 139508

Powered by Google App Engine
This is Rietveld 408576698