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

Issue 2745653008: [Media Router] Parse device description xml in utility process (Closed)

Created:
3 years, 9 months ago by zhaobin
Modified:
3 years, 9 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, media-router+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Parse device description xml in utility process - Add dial_device_description_parser.mojom to support communication between browser and utility process - Add DialDeviceDescriptionParser in chrome/utility to handle xml parsing and scrubbing - Add SafeDialDeviceDescriptionParser in chrome/browser to start parsing in utility process BUG=687375 Review-Url: https://codereview.chromium.org/2745653008 Cr-Commit-Position: refs/heads/master@{#459902} Committed: https://chromium.googlesource.com/chromium/src/+/687cddcf3340fb4e163ec55462dd2a66b9167774

Patch Set 1 #

Patch Set 2 : update common/media_router/OWNERS #

Patch Set 3 : use mojo instead of IPC #

Total comments: 38

Patch Set 4 : rebase with master #

Patch Set 5 : resolve code review comments from Mark #

Total comments: 20

Patch Set 6 : resolve code review comments from Mark #

Total comments: 21

Patch Set 7 : resolve code review comments from Mark #

Total comments: 26

Patch Set 8 : resolve code review comments from Derek #

Total comments: 16

Patch Set 9 : resolve code review comments from dcheng #

Patch Set 10 : resolve code review comments from jam #

Total comments: 4

Patch Set 11 : resolve code review comments from dcheng #

Patch Set 12 : rebase with master #

Patch Set 13 : try fix build errors #

Patch Set 14 : fix android build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+532 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_utility_manifest_overlay.json View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/router/discovery/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +69 lines, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/common/media_router/BUILD.gn View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/common/media_router/OWNERS View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/common/media_router/dial_device_description_parser.mojom View 1 2 3 4 5 6 7 8 9 10 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/utility/BUILD.gn View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/utility/media_router/OWNERS View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/utility/media_router/dial_device_description_parser_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/utility/media_router/dial_device_description_parser_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +114 lines, -0 lines 0 comments Download
A chrome/utility/media_router/dial_device_description_parser_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +153 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (23 generated)
zhaobin
3 years, 9 months ago (2017-03-11 00:31:25 UTC) #2
imcheng
Bin, could you look into using Mojo for talking to the utility process? Instead of ...
3 years, 9 months ago (2017-03-15 00:51:33 UTC) #3
zhaobin
On 2017/03/15 00:51:33, imcheng wrote: > Bin, could you look into using Mojo for talking ...
3 years, 9 months ago (2017-03-15 22:22:17 UTC) #5
mark a. foltz
This looks really good overall and most of my comments are minor. The one more ...
3 years, 9 months ago (2017-03-17 19:05:47 UTC) #6
mark a. foltz
[I'll review the unit test in a final pass.]
3 years, 9 months ago (2017-03-17 19:06:05 UTC) #7
mark a. foltz
On 2017/03/17 at 19:06:05, mark a. foltz wrote: > [I'll review the unit test in ...
3 years, 9 months ago (2017-03-17 21:56:49 UTC) #8
zhaobin
> > The one more significant thing is where the mojo service should live -from ...
3 years, 9 months ago (2017-03-18 00:17:39 UTC) #10
mark a. foltz
Looks good with remaining comments addressed. https://codereview.chromium.org/2745653008/diff/100001/chrome/common/media_router/dial_device_description.h File chrome/common/media_router/dial_device_description.h (right): https://codereview.chromium.org/2745653008/diff/100001/chrome/common/media_router/dial_device_description.h#newcode23 chrome/common/media_router/dial_device_description.h:23: // Model name ...
3 years, 9 months ago (2017-03-18 18:56:58 UTC) #11
zhaobin
https://codereview.chromium.org/2745653008/diff/100001/chrome/common/media_router/dial_device_description.h File chrome/common/media_router/dial_device_description.h (right): https://codereview.chromium.org/2745653008/diff/100001/chrome/common/media_router/dial_device_description.h#newcode23 chrome/common/media_router/dial_device_description.h:23: // Model name On 2017/03/18 18:56:57, mark a. foltz ...
3 years, 9 months ago (2017-03-20 21:25:46 UTC) #12
mark a. foltz
LGTM with a few minor comments - you'll need to get SECURITY_OWNERS review as usual ...
3 years, 9 months ago (2017-03-21 01:39:22 UTC) #13
mark a. foltz
https://codereview.chromium.org/2745653008/diff/120001/chrome/common/media_router/dial_device_description_parser.mojom File chrome/common/media_router/dial_device_description_parser.mojom (right): https://codereview.chromium.org/2745653008/diff/120001/chrome/common/media_router/dial_device_description_parser.mojom#newcode33 chrome/common/media_router/dial_device_description_parser.mojom:33: string logging_xml); On 2017/03/21 at 01:39:21, mark a. foltz ...
3 years, 9 months ago (2017-03-21 01:41:10 UTC) #14
zhaobin
+dcheng@ to review mojo related changes. https://codereview.chromium.org/2745653008/diff/120001/chrome/browser/media/router/discovery/safe_dial_device_description_parser.h File chrome/browser/media/router/discovery/safe_dial_device_description_parser.h (right): https://codereview.chromium.org/2745653008/diff/120001/chrome/browser/media/router/discovery/safe_dial_device_description_parser.h#newcode27 chrome/browser/media/router/discovery/safe_dial_device_description_parser.h:27: // |logging_xml|: xml ...
3 years, 9 months ago (2017-03-21 03:15:38 UTC) #16
imcheng
https://codereview.chromium.org/2745653008/diff/140001/chrome/browser/media/router/discovery/safe_dial_device_description_parser.cc File chrome/browser/media/router/discovery/safe_dial_device_description_parser.cc (right): https://codereview.chromium.org/2745653008/diff/140001/chrome/browser/media/router/discovery/safe_dial_device_description_parser.cc#newcode7 chrome/browser/media/router/discovery/safe_dial_device_description_parser.cc:7: #include <utility> Is this used? https://codereview.chromium.org/2745653008/diff/140001/chrome/browser/media/router/discovery/safe_dial_device_description_parser.cc#newcode9 chrome/browser/media/router/discovery/safe_dial_device_description_parser.cc:9: #include "chrome/common/extensions/chrome_utility_extensions_messages.h" ...
3 years, 9 months ago (2017-03-22 00:31:47 UTC) #17
zhaobin
https://codereview.chromium.org/2745653008/diff/140001/chrome/browser/media/router/discovery/safe_dial_device_description_parser.cc File chrome/browser/media/router/discovery/safe_dial_device_description_parser.cc (right): https://codereview.chromium.org/2745653008/diff/140001/chrome/browser/media/router/discovery/safe_dial_device_description_parser.cc#newcode7 chrome/browser/media/router/discovery/safe_dial_device_description_parser.cc:7: #include <utility> On 2017/03/22 00:31:46, imcheng wrote: > Is ...
3 years, 9 months ago (2017-03-22 01:55:32 UTC) #18
dcheng
Sorry for the slow review. https://codereview.chromium.org/2745653008/diff/160001/chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc File chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc (right): https://codereview.chromium.org/2745653008/diff/160001/chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc#newcode58 chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc:58: DCHECK(!device_description_callback_.is_null()); Nit: be consistent ...
3 years, 9 months ago (2017-03-22 09:53:03 UTC) #19
zhaobin
https://codereview.chromium.org/2745653008/diff/160001/chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc File chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc (right): https://codereview.chromium.org/2745653008/diff/160001/chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc#newcode58 chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc:58: DCHECK(!device_description_callback_.is_null()); On 2017/03/22 09:53:02, dcheng wrote: > Nit: be ...
3 years, 9 months ago (2017-03-22 19:18:52 UTC) #20
dcheng
lgtm
3 years, 9 months ago (2017-03-22 20:14:23 UTC) #21
zhaobin
+jam@ to review following files: chrome/utility/BUILD.gn chrome/utility/chrome_content_utility_client.cc mojo/public/tools/bindings/chromium_bindings_configuration.gni
3 years, 9 months ago (2017-03-22 21:18:41 UTC) #23
jam
On 2017/03/22 21:18:41, zhaobin wrote: > +jam@ to review following files: > > chrome/utility/BUILD.gn > ...
3 years, 9 months ago (2017-03-23 00:39:27 UTC) #24
jam
On 2017/03/22 21:18:41, zhaobin wrote: > +jam@ to review following files: > > chrome/utility/BUILD.gn > ...
3 years, 9 months ago (2017-03-23 00:39:28 UTC) #25
jam
On 2017/03/22 21:18:41, zhaobin wrote: > +jam@ to review following files: > > chrome/utility/BUILD.gn > ...
3 years, 9 months ago (2017-03-23 00:39:28 UTC) #26
jam
sorry hit enter accidentally. I was saying I couldn't find background for why this has ...
3 years, 9 months ago (2017-03-23 00:41:20 UTC) #27
zhaobin
On 2017/03/23 00:41:20, jam wrote: > sorry hit enter accidentally. > > I was saying ...
3 years, 9 months ago (2017-03-23 01:02:39 UTC) #28
jam
sorry for delay, I missed this. So this is fine, but I have one question: ...
3 years, 9 months ago (2017-03-24 17:44:15 UTC) #29
dcheng
On 2017/03/24 17:44:15, jam wrote: > sorry for delay, I missed this. > > So ...
3 years, 9 months ago (2017-03-24 22:02:13 UTC) #30
zhaobin
On 2017/03/24 17:44:15, jam wrote: > sorry for delay, I missed this. > > So ...
3 years, 9 months ago (2017-03-25 00:56:16 UTC) #31
dcheng
https://codereview.chromium.org/2745653008/diff/200001/chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc File chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc (right): https://codereview.chromium.org/2745653008/diff/200001/chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc#newcode68 chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc:68: chrome::mojom::DialDeviceDescriptionPtr()); Note: it's legal to just pass nullptr here ...
3 years, 9 months ago (2017-03-25 00:59:39 UTC) #34
jam
lgtm
3 years, 9 months ago (2017-03-27 16:40:09 UTC) #41
zhaobin
https://codereview.chromium.org/2745653008/diff/200001/chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc File chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc (right): https://codereview.chromium.org/2745653008/diff/200001/chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc#newcode68 chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.cc:68: chrome::mojom::DialDeviceDescriptionPtr()); On 2017/03/25 00:59:38, dcheng wrote: > Note: it's ...
3 years, 9 months ago (2017-03-27 19:16:55 UTC) #44
dcheng
still lgtm
3 years, 9 months ago (2017-03-27 22:04:42 UTC) #49
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/2745653008/280001
3 years, 9 months ago (2017-03-27 22:06:35 UTC) #52
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 22:17:01 UTC) #55
Message was sent while issue was closed.
Committed patchset #14 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/687cddcf3340fb4e163ec55462dd...

Powered by Google App Engine
This is Rietveld 408576698