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

Issue 2174693004: [Presentation API] Add support to content/ for multiple URLs per PresentationRequest. (Closed)

Created:
4 years, 5 months ago by mark a. foltz
Modified:
4 years, 3 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, feature-media-reviews_chromium.org, haraken, imcheng, jam, media-router+watch_chromium.org, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Add support to content/ for multiple URLs per PresentationRequest. This is the first part of a multi-part series of patches: 1 This patch 2-N Additional support in Blink, Media Router, UX, etc. N+1 https://codereview.chromium.org/2148643002 with Intent to Implement+Ship This patch: - Adds support to WebPresentationClient for passing multiple URLs to startSession/joinSession/setDefaultPresentationUrls - Updates PresentationService mojo interface - Updates PresentationServiceImpl/PresentationServiceDispatcher - Passes a single URL from Blink to WebPresentationClient - Passes a single URL from PresentationServiceDispatcherImpl to MR - Updates unittests BUG=627655 Committed: https://crrev.com/fcad5262059e8b20621dd601a44ea5383b04cca0 Cr-Commit-Position: refs/heads/master@{#416433}

Patch Set 1 #

Patch Set 2 : Updated unittests. #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Rebase with r408781 #

Patch Set 5 : Respond to apacible@ comment #

Patch Set 6 : Add missing TODO #

Total comments: 2

Patch Set 7 : Use mojom URL #

Patch Set 8 : Update service, dispatcher to use Mojo URLs. #

Total comments: 15

Patch Set 9 : Convert from url::mojom::UrlPtr to GURL #

Patch Set 10 : Clean up URL constants in PSDI unittest. #

Patch Set 11 : Fix constant formatting. #

Total comments: 8

Patch Set 12 : Respond to dcheng@ comments. #

Patch Set 13 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -299 lines) Patch
M chrome/browser/media/router/presentation_service_delegate_impl.h View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.cc View 1 2 3 4 5 6 3 chunks +28 lines, -6 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 19 chunks +57 lines, -58 lines 0 comments Download
M content/browser/presentation/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.h View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -11 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.cc View 1 2 3 4 5 6 7 8 11 chunks +44 lines, -27 lines 0 comments Download
M content/browser/presentation/presentation_service_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 27 chunks +135 lines, -120 lines 0 comments Download
M content/browser/presentation/presentation_type_converters.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/presentation/presentation_type_converters_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/browser/presentation_service_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -9 lines 0 comments Download
M content/renderer/presentation/presentation_connection_client.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/presentation/presentation_connection_client.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -5 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.h View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -6 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +33 lines, -27 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationController.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/presentation.mojom View 1 2 3 4 5 6 5 chunks +14 lines, -12 lines 0 comments Download

Messages

Total messages: 48 (22 generated)
mark a. foltz
PTAL
4 years, 4 months ago (2016-07-22 23:01:06 UTC) #4
mark a. foltz
Side note: GMock has horrible support for move-only types. Combined with endless type conversions between ...
4 years, 4 months ago (2016-07-22 23:03:51 UTC) #5
mlamouri (slow - plz ping)
lgtm. Note that if you want to reduce the plumbing, you should be able to ...
4 years, 4 months ago (2016-07-25 12:28:35 UTC) #6
mark a. foltz
Derek is OOO. Jennifer, can you PTAL?
4 years, 4 months ago (2016-07-25 17:05:53 UTC) #9
mark a. foltz
On 2016/07/25 at 12:28:35, mlamouri wrote: > lgtm. Note that if you want to reduce ...
4 years, 4 months ago (2016-07-25 17:08:33 UTC) #10
apacible
lgtm https://codereview.chromium.org/2174693004/diff/20001/chrome/browser/media/router/presentation_service_delegate_impl.cc File chrome/browser/media/router/presentation_service_delegate_impl.cc (right): https://codereview.chromium.org/2174693004/diff/20001/chrome/browser/media/router/presentation_service_delegate_impl.cc#newcode675 chrome/browser/media/router/presentation_service_delegate_impl.cc:675: // TODO(crbug.com/627655): Handle multiple URLs nitty nit: here ...
4 years, 4 months ago (2016-07-26 00:39:44 UTC) #11
mark a. foltz
+mkwst for presentation.mojom I've rebased this patch on crrev.com/2181163003 which eliminates conversions in PresentationServiceImpl and ...
4 years, 4 months ago (2016-07-29 23:41:15 UTC) #15
dcheng
https://codereview.chromium.org/2174693004/diff/100001/third_party/WebKit/public/platform/modules/presentation/presentation.mojom File third_party/WebKit/public/platform/modules/presentation/presentation.mojom (right): https://codereview.chromium.org/2174693004/diff/100001/third_party/WebKit/public/platform/modules/presentation/presentation.mojom#newcode58 third_party/WebKit/public/platform/modules/presentation/presentation.mojom:58: SetDefaultPresentationUrls(array<string> presentation_urls); Please pass URLs as URL types. For ...
4 years, 4 months ago (2016-07-30 10:21:03 UTC) #19
mark a. foltz
Okay, done.
4 years, 4 months ago (2016-08-18 18:37:19 UTC) #20
mark a. foltz
On 2016/08/18 at 18:37:19, mfoltz_ooo_7-29_8-14 wrote: > Okay, done. PTAL.
4 years, 4 months ago (2016-08-18 18:37:27 UTC) #21
dcheng
https://codereview.chromium.org/2174693004/diff/140001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2174693004/diff/140001/content/renderer/presentation/presentation_dispatcher.cc#newcode546 content/renderer/presentation/presentation_dispatcher.cc:546: url::mojom::UrlPtr url = url::mojom::Url::New(); What's the status on typemapping? ...
4 years, 3 months ago (2016-08-24 22:14:19 UTC) #22
mark a. foltz
https://codereview.chromium.org/2174693004/diff/140001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2174693004/diff/140001/content/renderer/presentation/presentation_dispatcher.cc#newcode546 content/renderer/presentation/presentation_dispatcher.cc:546: url::mojom::UrlPtr url = url::mojom::Url::New(); On 2016/08/24 at 22:14:19, dcheng ...
4 years, 3 months ago (2016-08-24 22:37:11 UTC) #23
dcheng
https://codereview.chromium.org/2174693004/diff/140001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2174693004/diff/140001/content/renderer/presentation/presentation_dispatcher.cc#newcode546 content/renderer/presentation/presentation_dispatcher.cc:546: url::mojom::UrlPtr url = url::mojom::Url::New(); On 2016/08/24 22:37:11, mark a. ...
4 years, 3 months ago (2016-08-24 23:12:17 UTC) #24
mark a. foltz
On 2016/08/24 at 23:12:17, dcheng wrote: > https://codereview.chromium.org/2174693004/diff/140001/content/renderer/presentation/presentation_dispatcher.cc > File content/renderer/presentation/presentation_dispatcher.cc (right): > > https://codereview.chromium.org/2174693004/diff/140001/content/renderer/presentation/presentation_dispatcher.cc#newcode546 ...
4 years, 3 months ago (2016-08-25 17:11:17 UTC) #25
dcheng
https://codereview.chromium.org/2174693004/diff/140001/chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc File chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc (right): https://codereview.chromium.org/2174693004/diff/140001/chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc#newcode88 chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc:88: std::vector<std::string> urls(1); std::vector<std::string> urls = {"http://foo.fakeUrl"}; here and elsewhere ...
4 years, 3 months ago (2016-08-26 18:13:33 UTC) #26
mark a. foltz
https://codereview.chromium.org/2174693004/diff/20001/chrome/browser/media/router/presentation_service_delegate_impl.cc File chrome/browser/media/router/presentation_service_delegate_impl.cc (right): https://codereview.chromium.org/2174693004/diff/20001/chrome/browser/media/router/presentation_service_delegate_impl.cc#newcode675 chrome/browser/media/router/presentation_service_delegate_impl.cc:675: // TODO(crbug.com/627655): Handle multiple URLs On 2016/07/26 at 00:39:44, ...
4 years, 3 months ago (2016-08-29 23:54:55 UTC) #27
dcheng
LGTM with comments addressed. > Oddly the generated mojom.h interface switched from url.mojom.UrlPtr to GURL ...
4 years, 3 months ago (2016-08-30 05:47:32 UTC) #28
mark a. foltz
+sky for content/test/BUILD.gn? https://codereview.chromium.org/2174693004/diff/200001/chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc File chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc (right): https://codereview.chromium.org/2174693004/diff/200001/chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc#newcode33 chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc:33: const char* const kPresentationUrl1 = "http://foo.fakeUrl.com/"; ...
4 years, 3 months ago (2016-08-30 19:57:54 UTC) #29
mark a. foltz
4 years, 3 months ago (2016-08-30 19:58:43 UTC) #33
sky
sky->jam (content/test/BUILD.gn)
4 years, 3 months ago (2016-08-30 20:42:35 UTC) #35
jam
lgtm
4 years, 3 months ago (2016-08-31 16:29:01 UTC) #38
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/2174693004/240001
4 years, 3 months ago (2016-09-02 18:51:16 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/286901)
4 years, 3 months ago (2016-09-02 22:29:21 UTC) #43
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/2174693004/240001
4 years, 3 months ago (2016-09-02 22:43:42 UTC) #45
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 3 months ago (2016-09-03 03:08:50 UTC) #46
commit-bot: I haz the power
4 years, 3 months ago (2016-09-03 03:10:42 UTC) #48
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/fcad5262059e8b20621dd601a44ea5383b04cca0
Cr-Commit-Position: refs/heads/master@{#416433}

Powered by Google App Engine
This is Rietveld 408576698