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

Issue 54743007: [GCM] Add connection factory for creating MCS connections (Closed)

Created:
7 years, 1 month ago by Nicolas Zea
Modified:
7 years ago
Reviewers:
akalin
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

[GCM] Add connection factory for creating MCS connections The connection factory abstracts all net interactions and enforces backoff policy. Once it creates a connection handler, Connect calls can be made whenever a reconnection is necessary/ready. The connection handler is also abstracted into an interface/impl for easier use in testing (fake connection factory/handlers will be introduced when testing the main logic of the client). BUG=284553 R=akalin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239275

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 14

Patch Set 3 : Address comments and add tests #

Patch Set 4 : fix #

Total comments: 20

Patch Set 5 : Address comments #

Patch Set 6 : Fix net_export #

Patch Set 7 : Fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+837 lines, -1239 lines) Patch
A google_apis/gcm/engine/connection_factory.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/connection_factory.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/connection_factory_impl.h View 1 2 3 4 1 chunk +99 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/connection_factory_impl.cc View 1 2 3 4 1 chunk +200 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/connection_factory_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +295 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/connection_handler.h View 1 2 chunks +18 lines, -100 lines 0 comments Download
M google_apis/gcm/engine/connection_handler.cc View 1 chunk +1 line, -387 lines 0 comments Download
A + google_apis/gcm/engine/connection_handler_impl.h View 1 2 4 chunks +25 lines, -48 lines 0 comments Download
A + google_apis/gcm/engine/connection_handler_impl.cc View 1 2 15 chunks +38 lines, -35 lines 0 comments Download
A + google_apis/gcm/engine/connection_handler_impl_unittest.cc View 1 2 19 chunks +43 lines, -41 lines 0 comments Download
D google_apis/gcm/engine/connection_handler_unittest.cc View 1 2 1 chunk +0 lines, -626 lines 0 comments Download
M google_apis/gcm/gcm.gyp View 1 2 3 chunks +10 lines, -2 lines 0 comments Download
M net/socket/client_socket_pool_manager.h View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_manager.cc View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Nicolas Zea
Fred, PTAL. In particular, it looks like the case of making an SSL connection to ...
7 years, 1 month ago (2013-11-01 19:49:47 UTC) #1
akalin
initial comments https://codereview.chromium.org/54743007/diff/20012/google_apis/gcm/engine/connection_factory.h File google_apis/gcm/engine/connection_factory.h (right): https://codereview.chromium.org/54743007/diff/20012/google_apis/gcm/engine/connection_factory.h#newcode17 google_apis/gcm/engine/connection_factory.h:17: // Factory for creating a ConnectionHandler and ...
7 years, 1 month ago (2013-11-02 00:15:43 UTC) #2
Nicolas Zea
Picking this up again, PTAL https://codereview.chromium.org/54743007/diff/20012/google_apis/gcm/engine/connection_factory.h File google_apis/gcm/engine/connection_factory.h (right): https://codereview.chromium.org/54743007/diff/20012/google_apis/gcm/engine/connection_factory.h#newcode17 google_apis/gcm/engine/connection_factory.h:17: // Factory for creating ...
7 years, 1 month ago (2013-11-15 23:37:34 UTC) #3
akalin
On 2013/11/15 23:37:34, Nicolas Zea wrote: > Picking this up again, PTAL > > https://codereview.chromium.org/54743007/diff/20012/google_apis/gcm/engine/connection_factory.h ...
7 years, 1 month ago (2013-11-19 05:22:04 UTC) #4
akalin
still looking, but one comment https://codereview.chromium.org/54743007/diff/240001/google_apis/gcm/engine/connection_factory_impl.cc File google_apis/gcm/engine/connection_factory_impl.cc (right): https://codereview.chromium.org/54743007/diff/240001/google_apis/gcm/engine/connection_factory_impl.cc#newcode167 google_apis/gcm/engine/connection_factory_impl.cc:167: // TODO(zea): This should ...
7 years, 1 month ago (2013-11-21 03:21:11 UTC) #5
akalin
more comments https://codereview.chromium.org/54743007/diff/240001/google_apis/gcm/engine/connection_factory.h File google_apis/gcm/engine/connection_factory.h (right): https://codereview.chromium.org/54743007/diff/240001/google_apis/gcm/engine/connection_factory.h#newcode34 google_apis/gcm/engine/connection_factory.h:34: const ConnectionHandler::ProtoReceivedCallback& read_callback, having two callbacks passed ...
7 years, 1 month ago (2013-11-21 04:13:08 UTC) #6
Nicolas Zea
PTAL https://codereview.chromium.org/54743007/diff/240001/google_apis/gcm/engine/connection_factory.h File google_apis/gcm/engine/connection_factory.h (right): https://codereview.chromium.org/54743007/diff/240001/google_apis/gcm/engine/connection_factory.h#newcode34 google_apis/gcm/engine/connection_factory.h:34: const ConnectionHandler::ProtoReceivedCallback& read_callback, On 2013/11/21 04:13:09, akalin wrote: ...
7 years, 1 month ago (2013-11-22 05:39:18 UTC) #7
Nicolas Zea
On 2013/11/22 05:39:18, Nicolas Zea wrote: > PTAL > > https://codereview.chromium.org/54743007/diff/240001/google_apis/gcm/engine/connection_factory.h > File google_apis/gcm/engine/connection_factory.h (right): ...
7 years ago (2013-12-02 17:45:06 UTC) #8
akalin
sorry for the delay! lgtm
7 years ago (2013-12-05 07:15:27 UTC) #9
Nicolas Zea
On 2013/12/05 07:15:27, akalin (on leave) wrote: > sorry for the delay! lgtm Woohoo! Attempting ...
7 years ago (2013-12-05 18:34:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/54743007/470001
7 years ago (2013-12-05 18:35:29 UTC) #11
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=131722
7 years ago (2013-12-05 22:22:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/54743007/490001
7 years ago (2013-12-05 23:21:31 UTC) #13
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32368
7 years ago (2013-12-06 05:31:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/54743007/490001
7 years ago (2013-12-06 18:53:15 UTC) #15
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32751
7 years ago (2013-12-06 21:27:59 UTC) #16
Nicolas Zea
7 years ago (2013-12-06 23:17:28 UTC) #17
Message was sent while issue was closed.
Committed patchset #7 manually as r239275 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698