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

Issue 2925053005: [cast_channel] Implement CastSocketService::OpenSocket() (Closed)

Created:
3 years, 6 months ago by zhaobin
Modified:
3 years, 5 months ago
Reviewers:
mark a. foltz, imcheng
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, mfoltz+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[cast_channel] Implement CastSocketService::OpenSocket() Extract open channel logic from CastChannelOpenFunction::AsyncWorkStart() so that it can be use by CastMediaSinkService. OpenChannel(ip_address1, ..., op_cb_1); OpenChannel(ip_address1, ..., op_cb_2); Should only create one cast socket and invoke both op_cb_1 and op_cb_2 when socket open finishes. BUG=687377 Review-Url: https://codereview.chromium.org/2925053005 Cr-Commit-Position: refs/heads/master@{#483039} Committed: https://chromium.googlesource.com/chromium/src/+/9662cb983c489007e8dc9a58f91d4fbb47f64290

Patch Set 1 #

Patch Set 2 : implement CastSocketService::OpenSocket() #

Total comments: 22

Patch Set 3 : rebase #

Total comments: 27

Patch Set 4 : rebase #

Patch Set 5 : resolve code review comments from Mark #

Total comments: 4

Patch Set 6 : resolve code review comments from Derek #

Patch Set 7 : move |logger_| from cast_channel_api to cast_socket_service #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -143 lines) Patch
M components/cast_channel/cast_channel_enum.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/cast_channel/cast_socket.h View 1 2 3 4 5 chunks +9 lines, -4 lines 0 comments Download
M components/cast_channel/cast_socket.cc View 1 2 3 4 5 4 chunks +30 lines, -11 lines 0 comments Download
M components/cast_channel/cast_socket_service.h View 1 2 3 4 5 6 4 chunks +51 lines, -3 lines 0 comments Download
M components/cast_channel/cast_socket_service.cc View 1 2 3 4 5 6 4 chunks +84 lines, -3 lines 0 comments Download
M components/cast_channel/cast_socket_service_unittest.cc View 1 2 3 4 6 3 chunks +46 lines, -25 lines 0 comments Download
M components/cast_channel/cast_socket_unittest.cc View 1 2 17 chunks +61 lines, -16 lines 0 comments Download
M components/cast_channel/cast_test_util.h View 1 2 1 chunk +26 lines, -9 lines 0 comments Download
M components/cast_channel/cast_test_util.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.h View 1 2 3 4 5 6 3 chunks +1 line, -12 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.cc View 1 2 3 4 5 6 6 chunks +19 lines, -31 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_apitest.cc View 1 2 3 4 5 6 8 chunks +40 lines, -27 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 27 (15 generated)
zhaobin
3 years, 6 months ago (2017-06-10 01:25:40 UTC) #4
mark a. foltz
I didn't look at the tests closely yet. marshallk@ is familiar with this code and ...
3 years, 6 months ago (2017-06-12 21:14:09 UTC) #5
zhaobin
A different implementation based on https://codereview.chromium.org/2942993003/. https://codereview.chromium.org/2925053005/diff/40001/components/cast_channel/cast_socket.h File components/cast_channel/cast_socket.h (right): https://codereview.chromium.org/2925053005/diff/40001/components/cast_channel/cast_socket.h#newcode130 components/cast_channel/cast_socket.h:130: // |channel_auth|. |channel_auth| ...
3 years, 6 months ago (2017-06-20 01:37:43 UTC) #6
mark a. foltz
LGTM % minor comments https://codereview.chromium.org/2925053005/diff/60001/components/cast_channel/cast_socket.cc File components/cast_channel/cast_socket.cc (right): https://codereview.chromium.org/2925053005/diff/60001/components/cast_channel/cast_socket.cc#newcode256 components/cast_channel/cast_socket.cc:256: case ReadyState::CLOSING: It sounds like ...
3 years, 6 months ago (2017-06-21 17:41:43 UTC) #7
zhaobin
https://codereview.chromium.org/2925053005/diff/60001/components/cast_channel/cast_socket.cc File components/cast_channel/cast_socket.cc (right): https://codereview.chromium.org/2925053005/diff/60001/components/cast_channel/cast_socket.cc#newcode256 components/cast_channel/cast_socket.cc:256: case ReadyState::CLOSING: On 2017/06/21 17:41:42, mark a. foltz wrote: ...
3 years, 6 months ago (2017-06-21 21:58:26 UTC) #8
imcheng
lgtm https://codereview.chromium.org/2925053005/diff/100001/components/cast_channel/cast_socket.cc File components/cast_channel/cast_socket.cc (right): https://codereview.chromium.org/2925053005/diff/100001/components/cast_channel/cast_socket.cc#newcode273 components/cast_channel/cast_socket.cc:273: DCHECK_EQ(ReadyState::NONE, ready_state_); Move the DCHECKs to the top ...
3 years, 6 months ago (2017-06-24 01:29:37 UTC) #9
zhaobin
https://codereview.chromium.org/2925053005/diff/100001/components/cast_channel/cast_socket.cc File components/cast_channel/cast_socket.cc (right): https://codereview.chromium.org/2925053005/diff/100001/components/cast_channel/cast_socket.cc#newcode273 components/cast_channel/cast_socket.cc:273: DCHECK_EQ(ReadyState::NONE, ready_state_); On 2017/06/24 01:29:36, imcheng wrote: > Move ...
3 years, 5 months ago (2017-06-26 19:04:10 UTC) #11
imcheng
On 2017/06/26 19:04:10, zhaobin wrote: > https://codereview.chromium.org/2925053005/diff/100001/components/cast_channel/cast_socket.cc > File components/cast_channel/cast_socket.cc (right): > > https://codereview.chromium.org/2925053005/diff/100001/components/cast_channel/cast_socket.cc#newcode273 > ...
3 years, 5 months ago (2017-06-26 19:51:58 UTC) #13
zhaobin
On 2017/06/26 19:51:58, imcheng wrote: > On 2017/06/26 19:04:10, zhaobin wrote: > > > https://codereview.chromium.org/2925053005/diff/100001/components/cast_channel/cast_socket.cc ...
3 years, 5 months ago (2017-06-27 19:17:00 UTC) #16
imcheng
lgtm
3 years, 5 months ago (2017-06-28 00:13:49 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2925053005/140001
3 years, 5 months ago (2017-06-28 17:10:27 UTC) #24
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 17:14:10 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/9662cb983c489007e8dc9a58f91d...

Powered by Google App Engine
This is Rietveld 408576698