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

Issue 555283002: Create new class "CastTransport", which encapsulates the message read and write event loops. (Closed)

Created:
6 years, 3 months ago by Kevin M
Modified:
6 years, 2 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

Create new class "CastTransport", which encapsulates the message read and write event loops. They currently target a revised stub interface for CastSocket, but not a full implementation. That change is witheld in a separate Git client so this CL can remain at a manageable size. Thanks! BUG=396345 R=mfoltz@chromium.org CC=wez@chromium.org Committed: https://crrev.com/f31a5ce132d22940ec99800091354e7bcd520da7 Cr-Commit-Position: refs/heads/master@{#296993}

Patch Set 1 #

Patch Set 2 : Added unit tests to CL #

Total comments: 6

Patch Set 3 : Merged in framer landing CL #

Patch Set 4 : Code review feedback. #

Total comments: 38

Patch Set 5 : Addressed code review feedback. #

Total comments: 4

Patch Set 6 : Code review feedback. #

Patch Set 7 : Code review feedback addressed. #

Total comments: 16

Patch Set 8 : Addressed wez's feedback. #

Total comments: 6

Patch Set 9 : Code review feedback addressed. #

Total comments: 20

Patch Set 10 : Addressed code review feedback. #

Patch Set 11 : Merge with master #

Patch Set 12 : Resync with master #

Patch Set 13 : Used %u instead of %zu for printf format string (%zu crashed Windows) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1393 lines, -55 lines) Patch
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -9 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +33 lines, -32 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_message_util.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_message_util.cc View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.cc View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -7 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_transport.h View 1 2 3 4 5 6 7 8 9 1 chunk +208 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_transport.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +446 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_transport_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +663 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (8 generated)
Kevin M
6 years, 3 months ago (2014-09-09 20:25:52 UTC) #1
mark a. foltz
Looks good so far. - How do you see the connection flow fitting into this? ...
6 years, 3 months ago (2014-09-11 06:47:45 UTC) #2
Kevin M
Connection flow: CastSocket constructed its own private CastTransport during connection setup and uses its own ...
6 years, 3 months ago (2014-09-11 18:07:58 UTC) #3
mark a. foltz
Okay, is this patch okay to commit or does it need to be merged with ...
6 years, 3 months ago (2014-09-12 00:43:55 UTC) #4
chromium-reviews
Are there any review items you want to take care of? Otherwise it's OK to ...
6 years, 3 months ago (2014-09-12 00:46:17 UTC) #5
mark a. foltz
I'll take another look and LGTM unless there are outstanding issues. On Thu, Sep 11, ...
6 years, 3 months ago (2014-09-12 16:42:59 UTC) #6
mark a. foltz
lgtm Minor comments below. You'll need a review from a committer as I'm not blessed ...
6 years, 3 months ago (2014-09-12 19:41:01 UTC) #7
Kevin M
Wez or Yuri, this CL needs committer review. Would either of you mind taking a ...
6 years, 3 months ago (2014-09-12 19:50:16 UTC) #9
Wez
https://codereview.chromium.org/555283002/diff/60001/extensions/browser/BUILD.gn File extensions/browser/BUILD.gn (right): https://codereview.chromium.org/555283002/diff/60001/extensions/browser/BUILD.gn#newcode91 extensions/browser/BUILD.gn:91: "api/cast_channel/cast_transport.h", Is there a GN target for the unittest.cc ...
6 years, 3 months ago (2014-09-12 20:00:00 UTC) #10
Kevin M
+rockot for gyp/GN reviews (thanks!) https://codereview.chromium.org/555283002/diff/60001/extensions/browser/BUILD.gn File extensions/browser/BUILD.gn (right): https://codereview.chromium.org/555283002/diff/60001/extensions/browser/BUILD.gn#newcode91 extensions/browser/BUILD.gn:91: "api/cast_channel/cast_transport.h", On 2014/09/12 19:59:59, ...
6 years, 3 months ago (2014-09-12 20:22:25 UTC) #12
Wez
Some more comments; I've not reviewed the unit-tests, just the implementation. https://codereview.chromium.org/555283002/diff/60001/extensions/browser/api/cast_channel/cast_transport.cc File extensions/browser/api/cast_channel/cast_transport.cc (right): ...
6 years, 3 months ago (2014-09-12 20:23:04 UTC) #13
Wez
https://codereview.chromium.org/555283002/diff/60001/extensions/browser/api/cast_channel/cast_transport.h File extensions/browser/api/cast_channel/cast_transport.h (right): https://codereview.chromium.org/555283002/diff/60001/extensions/browser/api/cast_channel/cast_transport.h#newcode86 extensions/browser/api/cast_channel/cast_transport.h:86: // Internal write states. On 2014/09/12 20:22:25, kmarshall wrote: ...
6 years, 3 months ago (2014-09-12 20:25:05 UTC) #14
Kevin M
https://codereview.chromium.org/555283002/diff/60001/extensions/browser/api/cast_channel/cast_transport.h File extensions/browser/api/cast_channel/cast_transport.h (right): https://codereview.chromium.org/555283002/diff/60001/extensions/browser/api/cast_channel/cast_transport.h#newcode46 extensions/browser/api/cast_channel/cast_transport.h:46: const net::CompletionCallback& callback) = 0; On 2014/09/12 20:23:04, Wez ...
6 years, 3 months ago (2014-09-12 21:26:23 UTC) #15
Ken Rockot(use gerrit already)
lgtm
6 years, 3 months ago (2014-09-12 21:28:46 UTC) #16
miu
Drive-by review comment: https://codereview.chromium.org/555283002/diff/80001/extensions/browser/api/cast_channel/cast_transport.h File extensions/browser/api/cast_channel/cast_transport.h (right): https://codereview.chromium.org/555283002/diff/80001/extensions/browser/api/cast_channel/cast_transport.h#newcode165 extensions/browser/api/cast_channel/cast_transport.h:165: CastSocketInterface* socket_; Should be: CastSocketInterface* const ...
6 years, 3 months ago (2014-09-15 19:08:36 UTC) #17
chromium-reviews
Nobody expects the const inquisition! 2014-09-15 12:08 GMT-07:00 <miu@chromium.org>: > Drive-by review comment: > > ...
6 years, 3 months ago (2014-09-15 19:26:58 UTC) #18
Kevin M
https://codereview.chromium.org/555283002/diff/60001/extensions/browser/api/cast_channel/cast_transport.h File extensions/browser/api/cast_channel/cast_transport.h (right): https://codereview.chromium.org/555283002/diff/60001/extensions/browser/api/cast_channel/cast_transport.h#newcode86 extensions/browser/api/cast_channel/cast_transport.h:86: // Internal write states. On 2014/09/12 21:26:23, kmarshall wrote: ...
6 years, 3 months ago (2014-09-16 21:23:10 UTC) #19
miu
https://codereview.chromium.org/555283002/diff/80001/extensions/browser/api/cast_channel/cast_transport.h File extensions/browser/api/cast_channel/cast_transport.h (right): https://codereview.chromium.org/555283002/diff/80001/extensions/browser/api/cast_channel/cast_transport.h#newcode165 extensions/browser/api/cast_channel/cast_transport.h:165: CastSocketInterface* socket_; On 2014/09/16 21:23:10, kmarshall wrote: > On ...
6 years, 3 months ago (2014-09-16 21:39:53 UTC) #20
Kevin M
https://codereview.chromium.org/555283002/diff/80001/extensions/browser/api/cast_channel/cast_transport.h File extensions/browser/api/cast_channel/cast_transport.h (right): https://codereview.chromium.org/555283002/diff/80001/extensions/browser/api/cast_channel/cast_transport.h#newcode165 extensions/browser/api/cast_channel/cast_transport.h:165: CastSocketInterface* socket_; On 2014/09/16 21:39:53, miu wrote: > On ...
6 years, 3 months ago (2014-09-16 21:45:59 UTC) #21
miu
On 2014/09/16 21:45:59, kmarshall wrote: > Didn't catch that git cl upload failed (oops, bad ...
6 years, 3 months ago (2014-09-18 21:45:37 UTC) #22
Wez
I suspect this will be my final round of review comments, though I noticed that ...
6 years, 3 months ago (2014-09-19 00:01:33 UTC) #24
Kevin M
https://codereview.chromium.org/555283002/diff/120001/extensions/browser/api/cast_channel/cast_transport.cc File extensions/browser/api/cast_channel/cast_transport.cc (right): https://codereview.chromium.org/555283002/diff/120001/extensions/browser/api/cast_channel/cast_transport.cc#newcode39 extensions/browser/api/cast_channel/cast_transport.cc:39: // Buffer is reused across messages. On 2014/09/19 00:01:32, ...
6 years, 3 months ago (2014-09-19 18:13:07 UTC) #25
Wez
https://codereview.chromium.org/555283002/diff/140001/extensions/browser/api/cast_channel/cast_channel_api.h File extensions/browser/api/cast_channel/cast_channel_api.h (right): https://codereview.chromium.org/555283002/diff/140001/extensions/browser/api/cast_channel/cast_channel_api.h#newcode54 extensions/browser/api/cast_channel/cast_channel_api.h:54: scoped_ptr<cast_channel::CastSocketImpl> CreateCastSocketImpl( Ick... OK, this ends up being really ...
6 years, 3 months ago (2014-09-20 00:41:30 UTC) #26
Kevin M
https://codereview.chromium.org/555283002/diff/140001/extensions/browser/api/cast_channel/cast_channel_api.h File extensions/browser/api/cast_channel/cast_channel_api.h (right): https://codereview.chromium.org/555283002/diff/140001/extensions/browser/api/cast_channel/cast_channel_api.h#newcode54 extensions/browser/api/cast_channel/cast_channel_api.h:54: scoped_ptr<cast_channel::CastSocketImpl> CreateCastSocketImpl( On 2014/09/20 00:41:30, Wez wrote: > Ick... ...
6 years, 3 months ago (2014-09-22 19:56:51 UTC) #27
Kevin M
Friendly ping. The followup CL is ready to send out.
6 years, 3 months ago (2014-09-24 17:08:15 UTC) #28
Wez
LGTM w/ nits! https://codereview.chromium.org/555283002/diff/120001/extensions/browser/api/cast_channel/cast_transport.h File extensions/browser/api/cast_channel/cast_transport.h (right): https://codereview.chromium.org/555283002/diff/120001/extensions/browser/api/cast_channel/cast_transport.h#newcode135 extensions/browser/api/cast_channel/cast_transport.h:135: static proto::ErrorState ErrorStateToProto(ChannelError state); On 2014/09/19 ...
6 years, 3 months ago (2014-09-25 02:09:15 UTC) #29
Wez
(Apologies for the delayed review...)
6 years, 3 months ago (2014-09-25 02:09:42 UTC) #30
Kevin M
https://codereview.chromium.org/555283002/diff/160001/extensions/browser/api/cast_channel/cast_channel_api.cc File extensions/browser/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/555283002/diff/160001/extensions/browser/api/cast_channel/cast_channel_api.cc#newcode138 extensions/browser/api/cast_channel/cast_channel_api.cc:138: const base::TimeDelta& timeout) { On 2014/09/25 02:09:15, Wez wrote: ...
6 years, 2 months ago (2014-09-25 17:53:05 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/555283002/200001
6 years, 2 months ago (2014-09-25 21:12:00 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/16279)
6 years, 2 months ago (2014-09-25 22:35:18 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/555283002/220001
6 years, 2 months ago (2014-09-25 23:21:07 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/13270)
6 years, 2 months ago (2014-09-26 02:12:46 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/555283002/240001
6 years, 2 months ago (2014-09-26 18:04:12 UTC) #41
commit-bot: I haz the power
Committed patchset #13 (id:240001) as b80e4ba5ea55f066a5f33e91046fa7ecdccbeee1
6 years, 2 months ago (2014-09-26 18:56:42 UTC) #42
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 18:57:23 UTC) #43
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/f31a5ce132d22940ec99800091354e7bcd520da7
Cr-Commit-Position: refs/heads/master@{#296993}

Powered by Google App Engine
This is Rietveld 408576698