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

Issue 2947403004: [MediaRouter] Replace RouteMessage with PresentationConnectionMessage (Closed)

Created:
3 years, 6 months ago by imcheng
Modified:
3 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, apacible+watch_chromium.org, avayvod+watch_chromium.org, chfremer+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, erickung+watch_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jam, jasonroberts+watch_google.com, mfoltz+watch_chromium.org, miu+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, xjz+watch_chromium.org, yzshen+watch_chromium.org, xjz
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[MediaRouter] Replace RouteMessage with PresentationConnectionMessage - move ToHumanReadableString() from RouteMessage (deleted) to test_helper - make PCM move constructor noexcept to optimize for std::move_if_noexcept in std::vector and other STL containers TODO in future patches: - consider making PCM move-only after xjz@'s remoting patch lands, though I am less inclined to make this optimization to overly restrict the API. - replace RouteMessage mojo type with PCM BUG=699230 Review-Url: https://codereview.chromium.org/2947403004 Cr-Commit-Position: refs/heads/master@{#484825} Committed: https://chromium.googlesource.com/chromium/src/+/a9332ac8182d3ed2f84717e669d8a62ff8ab58ea

Patch Set 1 : . #

Total comments: 10

Patch Set 2 : Addressed Takumi's comments #

Total comments: 36

Patch Set 3 : Addressed Mark's comments #

Patch Set 4 : simplified optional check + move ToString to test_helper #

Patch Set 5 : emplace_back #

Total comments: 2

Patch Set 6 : addressed miu's comments #

Patch Set 7 : fix android #

Total comments: 4

Patch Set 8 : Addressed dcheng's commentS #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -325 lines) Patch
M chrome/browser/media/android/router/media_router_android.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/media/cast_remoting_connector.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/media/cast_remoting_connector.cc View 1 2 3 4 5 3 chunks +69 lines, -83 lines 0 comments Download
M chrome/browser/media/cast_remoting_connector_unittest.cc View 1 2 3 4 10 chunks +32 lines, -37 lines 0 comments Download
M chrome/browser/media/router/browser_presentation_connection_proxy.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/media/router/browser_presentation_connection_proxy.cc View 2 chunks +3 lines, -17 lines 0 comments Download
M chrome/browser/media/router/browser_presentation_connection_proxy_unittest.cc View 2 chunks +15 lines, -22 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +51 lines, -53 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/media/router/route_message_observer.h View 1 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/media/router/test_helper.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/media/router/test_helper.cc View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/common/media_router/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/media_router/mojo/media_router.typemap View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/media_router/mojo/media_router_struct_traits.h View 1 2 3 4 5 6 7 1 chunk +13 lines, -23 lines 0 comments Download
D chrome/common/media_router/route_message.h View 1 chunk +0 lines, -35 lines 0 comments Download
D chrome/common/media_router/route_message.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M content/public/common/presentation_connection_message.h View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M content/public/common/presentation_connection_message.cc View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 72 (45 generated)
imcheng
Takumi: PTAL thanks! https://codereview.chromium.org/2947403004/diff/20001/chrome/browser/media/cast_remoting_connector.cc File chrome/browser/media/cast_remoting_connector.cc (right): https://codereview.chromium.org/2947403004/diff/20001/chrome/browser/media/cast_remoting_connector.cc#newcode374 chrome/browser/media/cast_remoting_connector.cc:374: for (const auto& message : messages) ...
3 years, 5 months ago (2017-06-26 17:52:52 UTC) #15
takumif
lgtm with minor comments. You'll still need an lgtm from a full committer as well ...
3 years, 5 months ago (2017-06-26 18:50:16 UTC) #16
imcheng
+mfoltz PTAL https://codereview.chromium.org/2947403004/diff/20001/chrome/browser/media/cast_remoting_connector.h File chrome/browser/media/cast_remoting_connector.h (right): https://codereview.chromium.org/2947403004/diff/20001/chrome/browser/media/cast_remoting_connector.h#newcode137 chrome/browser/media/cast_remoting_connector.h:137: // remoting route. There are two types ...
3 years, 5 months ago (2017-06-27 06:41:57 UTC) #22
takumif
https://codereview.chromium.org/2947403004/diff/20001/chrome/browser/media/cast_remoting_connector_unittest.cc File chrome/browser/media/cast_remoting_connector_unittest.cc (right): https://codereview.chromium.org/2947403004/diff/20001/chrome/browser/media/cast_remoting_connector_unittest.cc#newcode272 chrome/browser/media/cast_remoting_connector_unittest.cc:272: media_router_.TakeMessagesSentToProvider(true, &messages); On 2017/06/27 06:41:57, imcheng wrote: > On ...
3 years, 5 months ago (2017-06-28 00:30:19 UTC) #23
mark a. foltz
Thanks - this is an excellent cleanup. Minor style comments and there is some possible ...
3 years, 5 months ago (2017-06-28 07:29:56 UTC) #24
imcheng
https://codereview.chromium.org/2947403004/diff/40001/chrome/browser/media/android/router/media_router_android.cc File chrome/browser/media/android/router/media_router_android.cc (right): https://codereview.chromium.org/2947403004/diff/40001/chrome/browser/media/android/router/media_router_android.cc#newcode320 chrome/browser/media/android/router/media_router_android.cc:320: std::vector<content::PresentationConnectionMessage> messages(1); On 2017/06/28 07:29:53, mark a. foltz wrote: ...
3 years, 5 months ago (2017-06-29 08:21:09 UTC) #27
mark a. foltz
https://codereview.chromium.org/2947403004/diff/40001/chrome/browser/media/cast_remoting_connector_unittest.cc File chrome/browser/media/cast_remoting_connector_unittest.cc (right): https://codereview.chromium.org/2947403004/diff/40001/chrome/browser/media/cast_remoting_connector_unittest.cc#newcode275 chrome/browser/media/cast_remoting_connector_unittest.cc:275: if (message.message && expected_message == *message.message) { On 2017/06/29 ...
3 years, 5 months ago (2017-06-29 17:38:57 UTC) #30
imcheng
https://codereview.chromium.org/2947403004/diff/40001/chrome/browser/media/cast_remoting_connector_unittest.cc File chrome/browser/media/cast_remoting_connector_unittest.cc (right): https://codereview.chromium.org/2947403004/diff/40001/chrome/browser/media/cast_remoting_connector_unittest.cc#newcode275 chrome/browser/media/cast_remoting_connector_unittest.cc:275: if (message.message && expected_message == *message.message) { On 2017/06/29 ...
3 years, 5 months ago (2017-06-29 17:58:23 UTC) #31
imcheng
On 2017/06/28 07:29:56, mark a. foltz wrote: > Thanks - this is an excellent cleanup. ...
3 years, 5 months ago (2017-06-29 18:01:48 UTC) #32
mark a. foltz
On 2017/06/29 at 17:58:23, imcheng wrote: > https://codereview.chromium.org/2947403004/diff/40001/chrome/browser/media/cast_remoting_connector_unittest.cc > File chrome/browser/media/cast_remoting_connector_unittest.cc (right): > > https://codereview.chromium.org/2947403004/diff/40001/chrome/browser/media/cast_remoting_connector_unittest.cc#newcode275 ...
3 years, 5 months ago (2017-06-29 18:02:02 UTC) #33
imcheng
On 2017/06/29 18:02:02, mark a. foltz wrote: > On 2017/06/29 at 17:58:23, imcheng wrote: > ...
3 years, 5 months ago (2017-06-29 18:06:06 UTC) #34
mark a. foltz
> > https://codereview.chromium.org/2947403004/diff/40001/content/public/common/presentation_connection_message.cc#newcode54 > > > content/public/common/presentation_connection_message.cc:54: std::string > > PresentationConnectionMessage::ToHumanReadableString() const { > > ...
3 years, 5 months ago (2017-06-29 18:36:31 UTC) #35
mark a. foltz
lgtm
3 years, 5 months ago (2017-06-29 18:39:32 UTC) #36
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/2947403004/80001
3 years, 5 months ago (2017-06-29 19:04:56 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/477733)
3 years, 5 months ago (2017-06-29 19:17:47 UTC) #41
imcheng
+ additional reviewers. Please review: miu: cast_remoting_connector* avi: content/public/common/* dcheng: media_router.typemap, media_router_struct_traits.h
3 years, 5 months ago (2017-06-29 19:45:12 UTC) #43
Avi (use Gerrit)
content/public/common lgtm
3 years, 5 months ago (2017-06-29 19:56:24 UTC) #45
miu
cast_remoting_connector* lgtm BTW, xjz@ is rewriting that code to use mojo instead of route messages ...
3 years, 5 months ago (2017-06-29 22:07:59 UTC) #46
imcheng
Friendly ping dcheng for media_router.typemap, media_router_struct_traits.h https://codereview.chromium.org/2947403004/diff/100001/chrome/browser/media/cast_remoting_connector.cc File chrome/browser/media/cast_remoting_connector.cc (right): https://codereview.chromium.org/2947403004/diff/100001/chrome/browser/media/cast_remoting_connector.cc#newcode384 chrome/browser/media/cast_remoting_connector.cc:384: DCHECK(message.message); On 2017/06/29 ...
3 years, 5 months ago (2017-07-05 18:06:25 UTC) #47
dcheng
LGTM with nits (I didn't look at anything outside the struct traits) https://codereview.chromium.org/2947403004/diff/140001/chrome/common/media_router/mojo/media_router_struct_traits.h File chrome/common/media_router/mojo/media_router_struct_traits.h ...
3 years, 5 months ago (2017-07-06 08:18:05 UTC) #56
imcheng
https://codereview.chromium.org/2947403004/diff/140001/chrome/common/media_router/mojo/media_router_struct_traits.h File chrome/common/media_router/mojo/media_router_struct_traits.h (right): https://codereview.chromium.org/2947403004/diff/140001/chrome/common/media_router/mojo/media_router_struct_traits.h#newcode189 chrome/common/media_router/mojo/media_router_struct_traits.h:189: if (!data.ReadMessage(&text) || !text) On 2017/07/06 08:18:05, dcheng wrote: ...
3 years, 5 months ago (2017-07-06 20:26:49 UTC) #57
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/2947403004/160001
3 years, 5 months ago (2017-07-06 20:27:36 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/252841) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 5 months ago (2017-07-06 20:30:36 UTC) #62
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/2947403004/180001
3 years, 5 months ago (2017-07-06 22:57:00 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/463013)
3 years, 5 months ago (2017-07-06 23:05:28 UTC) #67
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/2947403004/180001
3 years, 5 months ago (2017-07-07 02:23:26 UTC) #69
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 03:57:42 UTC) #72
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/a9332ac8182d3ed2f84717e669d8...

Powered by Google App Engine
This is Rietveld 408576698