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

Issue 393023003: Added connection timeout functionality to CastSocket. (Closed)

Created:
6 years, 5 months ago by Kevin M
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Added connection timeout functionality to CastSocket. Added a default timeout interval (8s) to Cast API. Will expose to callers in a followup CL. 8s seconds was selected (rather arbitrarily) to match cloudview.sender.ChannelService.CHANNEL_CREATION_TIMEOUT_ from the extension. Miscellaneous minor doc fixes, and lint-friendly cleanups. BUG=335221 R=mfoltz@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285455

Patch Set 1 #

Total comments: 24

Patch Set 2 : JS API plumbing, switch approach from MessageLoop to Timer, better testing. #

Total comments: 7

Patch Set 3 : Replaced cancelable task tracker with cancellation bit. #

Patch Set 4 : Converted intervals to base::TimeDelta #

Patch Set 5 : Fix CastSocketAPI unit tests. #

Patch Set 6 : Added missing initializer for CastSocket unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -29 lines) Patch
M chrome/browser/extensions/api/cast_channel/cast_channel_api.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_channel_api.cc View 1 2 3 4 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_channel_apitest.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_socket.h View 1 2 3 6 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_socket.cc View 1 2 3 4 5 9 chunks +41 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_socket_unittest.cc View 1 2 3 4 5 11 chunks +77 lines, -15 lines 0 comments Download
M chrome/common/extensions/api/cast_channel.idl View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Kevin M
6 years, 5 months ago (2014-07-15 21:59:13 UTC) #1
haibinlu
https://codereview.chromium.org/393023003/diff/1/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc File chrome/browser/extensions/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/393023003/diff/1/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc#newcode25 chrome/browser/extensions/api/cast_channel/cast_channel_api.cc:25: const int64 kDefaultConnectTimeoutMillis = 10000; // 10 seconds. 5 ...
6 years, 5 months ago (2014-07-15 22:10:45 UTC) #2
mark a. foltz
Mostly minor comments on naming, although I ask you to carefully look at the code ...
6 years, 5 months ago (2014-07-15 22:18:16 UTC) #3
Kevin M
https://codereview.chromium.org/393023003/diff/1/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc File chrome/browser/extensions/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/393023003/diff/1/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc#newcode24 chrome/browser/extensions/api/cast_channel/cast_channel_api.cc:24: // TODO(kmarshall): add Javascript plumbing so clients can set ...
6 years, 5 months ago (2014-07-16 22:59:42 UTC) #4
mark a. foltz
lgtm Nice patch. I'm not a committer and I don't think Haibin is either, so ...
6 years, 5 months ago (2014-07-17 23:56:50 UTC) #5
Kevin M
https://codereview.chromium.org/393023003/diff/10001/chrome/browser/extensions/api/cast_channel/cast_socket_unittest.cc File chrome/browser/extensions/api/cast_channel/cast_socket_unittest.cc (right): https://codereview.chromium.org/393023003/diff/10001/chrome/browser/extensions/api/cast_channel/cast_socket_unittest.cc#newcode174 chrome/browser/extensions/api/cast_channel/cast_socket_unittest.cc:174: connect_timeout_timer_ = connect_timeout_timer_owned.get(); On 2014/07/17 23:56:49, mark a. foltz ...
6 years, 5 months ago (2014-07-22 18:51:50 UTC) #6
mark a. foltz
lgtm https://codereview.chromium.org/393023003/diff/10001/chrome/common/extensions/api/cast_channel.idl File chrome/common/extensions/api/cast_channel.idl (right): https://codereview.chromium.org/393023003/diff/10001/chrome/common/extensions/api/cast_channel.idl#newcode48 chrome/common/extensions/api/cast_channel.idl:48: connect_timeout On 2014/07/22 18:51:49, kmarshall wrote: > On ...
6 years, 5 months ago (2014-07-22 18:57:53 UTC) #7
miu
Please use base::TimeDelta throughout the code (i.e., everywhere you have a xxxxx_ms variable/class member). This ...
6 years, 5 months ago (2014-07-22 20:18:54 UTC) #8
Kevin M
On 2014/07/22 20:18:54, miu wrote: > Please use base::TimeDelta throughout the code (i.e., everywhere you ...
6 years, 5 months ago (2014-07-22 21:02:36 UTC) #9
miu
lgtm
6 years, 5 months ago (2014-07-23 03:09:41 UTC) #10
Kevin M
Hey Benjamin, This CL touches the cast_channel.idl. Would you mind taking a look? Thanks!
6 years, 5 months ago (2014-07-23 16:27:26 UTC) #11
not at google - send to devlin
lgtm
6 years, 5 months ago (2014-07-23 16:32:32 UTC) #12
Kevin M
The CQ bit was checked by kmarshall@chromium.org
6 years, 5 months ago (2014-07-23 23:43:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmarshall@chromium.org/393023003/70001
6 years, 5 months ago (2014-07-23 23:47:11 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-24 05:50:34 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-24 07:31:48 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/33912)
6 years, 5 months ago (2014-07-24 07:31:49 UTC) #17
Kevin M
The CQ bit was checked by kmarshall@chromium.org
6 years, 5 months ago (2014-07-24 22:08:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmarshall@chromium.org/393023003/90001
6 years, 5 months ago (2014-07-24 22:12:01 UTC) #19
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 02:29:03 UTC) #20
Message was sent while issue was closed.
Change committed as 285455

Powered by Google App Engine
This is Rietveld 408576698