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

Issue 2552343009: [Presentation API] Adds DOMString[] constructor to PresentationRequest. (Closed)

Created:
4 years ago by zhaobin
Modified:
3 years, 11 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, haraken, jam, media-router+watch_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Adds DOMString[] constructor to PresentationRequest. Applying https://codereview.chromium.org/2148643002/ This updates the Blink and platform layers of the Presentation API to support multiple URLs per PresentationRequest. Until support is plumbed through to the service layer, only the first URL in the array will be passed through the PresentationService API. This also: - Updates layout tests to exercise the new constructor - Adds a unit test to PresentationRequest - Updates PresentationAvailabilityTest - Adds a 'url' attribute to PresentationConnection - Moves mixed-content check to PresentationRequest ctor BUG=627655, 673942, 654110 Review-Url: https://codereview.chromium.org/2552343009 Cr-Commit-Position: refs/heads/master@{#444148} Committed: https://chromium.googlesource.com/chromium/src/+/ad0eb0fa0ba570b4e41e28383dda35d1aca0a894

Patch Set 1 #

Total comments: 14

Patch Set 2 : resolve code review comments from Mark #

Total comments: 3

Patch Set 3 : resolve code review comments from mlamouri #

Total comments: 27

Patch Set 4 : resolve code review comments from mlamouri #

Patch Set 5 : resolve code review comments from Anton #

Total comments: 4

Patch Set 6 : resolve code review comments from Mark #

Patch Set 7 : rebase with master #

Total comments: 1

Patch Set 8 : resolve code review comments from Derek #

Patch Set 9 : rebase with master and resolve merge conflicts #

Patch Set 10 : rebase #

Total comments: 2

Patch Set 11 : resolve code review comments from haraken and fix layout test failure #

Patch Set 12 : rebase #

Patch Set 13 : fix presentation_dispatcher_unittest after rebase #

Patch Set 14 : rebase #

Total comments: 19

Patch Set 15 : resolve code review comments from foolip #

Patch Set 16 : resolve code review comments from foolip #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -144 lines) Patch
M chrome/test/media_router/resources/common.js View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/presentation/presentation_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -5 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/presentation/presentation-api.html View 1 chunk +11 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -17 lines 0 comments Download
A third_party/WebKit/LayoutTests/presentation/presentation-start.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +44 lines, -0 lines 1 comment Download
M third_party/WebKit/LayoutTests/presentation/presentationconnectionavailableevent-ctor-mock.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/presentation/presentationrequest.html View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/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/Presentation.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationAvailability.h View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.cpp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationController.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationController.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationRequest.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +7 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 7 chunks +44 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationRequest.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp View 1 2 3 4 5 6 7 1 chunk +95 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/WebPresentationAvailabilityObserver.h View 1 chunk +6 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 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 80 (54 generated)
zhaobin
4 years ago (2016-12-09 01:51:07 UTC) #2
mark a. foltz
Thanks for doing this! Overall looks good with a few minor comments based on spec ...
4 years ago (2016-12-09 05:38:04 UTC) #3
whywhat
https://codereview.chromium.org/2552343009/diff/1/third_party/WebKit/Source/modules/presentation/Presentation.cpp File third_party/WebKit/Source/modules/presentation/Presentation.cpp (right): https://codereview.chromium.org/2552343009/diff/1/third_party/WebKit/Source/modules/presentation/Presentation.cpp#newcode50 third_party/WebKit/Source/modules/presentation/Presentation.cpp:50: controller->setDefaultRequestUrl(request ? request->urls() On 2016/12/09 at 05:38:03, mark a. ...
4 years ago (2016-12-09 22:44:09 UTC) #5
zhaobin
https://codereview.chromium.org/2552343009/diff/1/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2552343009/diff/1/content/renderer/presentation/presentation_dispatcher.cc#newcode248 content/renderer/presentation/presentation_dispatcher.cc:248: // TODO(mfoltz): Pass all URLs to PresentationService. On 2016/12/09 ...
4 years ago (2016-12-09 23:02:00 UTC) #6
mlamouri (slow - plz ping)
This is a fairly large CL. Any chance it can be broken up in smaller ...
4 years ago (2016-12-10 12:06:19 UTC) #7
zhaobin
Adding url property to PresentationConnection could be a seperate patch (https://codereview.chromium.org/2423203002/). Further break down is ...
4 years ago (2016-12-12 19:53:45 UTC) #8
mlamouri (slow - plz ping)
lgtm with comments applied. Feel free to ignore the nit/style comments. https://codereview.chromium.org/2552343009/diff/40001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): ...
4 years ago (2016-12-13 13:50:53 UTC) #9
mark a. foltz
In principle it is possible to land the controller/dispatcher changes in one patch and then ...
4 years ago (2016-12-13 23:52:00 UTC) #10
zhaobin
Resolving mlamouri's comments. mfoltz@ multiple url support for getAvailability() has not been implemented yet. That ...
4 years ago (2016-12-14 01:51:54 UTC) #12
whywhat
https://codereview.chromium.org/2552343009/diff/40001/third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html File third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html (right): https://codereview.chromium.org/2552343009/diff/40001/third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html#newcode13 third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html:13: navigator.presentation.defaultRequest = new PresentationRequest(["https://example.org", "cast://google.com/app_id=deadbeef"]); On 2016/12/14 at 01:51:53, ...
4 years ago (2016-12-14 02:20:39 UTC) #13
whywhat
lgtm too btw
4 years ago (2016-12-14 02:21:41 UTC) #14
zhaobin
https://codereview.chromium.org/2552343009/diff/40001/third_party/WebKit/LayoutTests/presentation/presentationrequest.html File third_party/WebKit/LayoutTests/presentation/presentationrequest.html (right): https://codereview.chromium.org/2552343009/diff/40001/third_party/WebKit/LayoutTests/presentation/presentationrequest.html#newcode12 third_party/WebKit/LayoutTests/presentation/presentationrequest.html:12: var testUserGesture = function(t, requestArgument) { On 2016/12/14 02:20:39, ...
4 years ago (2016-12-14 03:00:27 UTC) #15
whywhat
https://codereview.chromium.org/2552343009/diff/40001/third_party/WebKit/LayoutTests/presentation/presentationrequest.html File third_party/WebKit/LayoutTests/presentation/presentationrequest.html (right): https://codereview.chromium.org/2552343009/diff/40001/third_party/WebKit/LayoutTests/presentation/presentationrequest.html#newcode12 third_party/WebKit/LayoutTests/presentation/presentationrequest.html:12: var testUserGesture = function(t, requestArgument) { On 2016/12/14 at ...
4 years ago (2016-12-14 03:53:14 UTC) #16
mark a. foltz
Nice patch. lgtm with one test case request. Can you please copy and update the ...
4 years ago (2016-12-14 06:47:10 UTC) #17
zhaobin
https://codereview.chromium.org/2552343009/diff/80001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2552343009/diff/80001/content/renderer/presentation/presentation_dispatcher.cc#newcode248 content/renderer/presentation/presentation_dispatcher.cc:248: // TODO((mfoltz): Pass all URLs to PresentationService. See crbug.com/627655. ...
4 years ago (2016-12-15 00:49:21 UTC) #22
imcheng
lgtm https://codereview.chromium.org/2552343009/diff/120001/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp File third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp (right): https://codereview.chromium.org/2552343009/diff/120001/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp#newcode72 third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp:72: WTF::Vector<KURL> parsedUrls(urls.size()); We should handle the case of ...
4 years ago (2016-12-20 20:11:27 UTC) #29
zhaobin
+foolip to review layout test files: third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt
3 years, 11 months ago (2017-01-04 19:16:33 UTC) #31
haraken
https://codereview.chromium.org/2552343009/diff/180001/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp File third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp (right): https://codereview.chromium.org/2552343009/diff/180001/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp#newcode68 third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp:68: WTF::Vector<String> urls(1); Nit: We won't need the WTF:: prefix.
3 years, 11 months ago (2017-01-04 23:53:52 UTC) #39
zhaobin
https://codereview.chromium.org/2552343009/diff/180001/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp File third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp (right): https://codereview.chromium.org/2552343009/diff/180001/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp#newcode68 third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp:68: WTF::Vector<String> urls(1); On 2017/01/04 23:53:52, haraken wrote: > > ...
3 years, 11 months ago (2017-01-06 18:30:34 UTC) #42
foolip
https://codereview.chromium.org/2552343009/diff/270001/third_party/WebKit/LayoutTests/presentation/presentation-api.html File third_party/WebKit/LayoutTests/presentation/presentation-api.html (right): https://codereview.chromium.org/2552343009/diff/270001/third_party/WebKit/LayoutTests/presentation/presentation-api.html#newcode42 third_party/WebKit/LayoutTests/presentation/presentation-api.html:42: }, "Test PresentationRequest API types for multiple URLs."); This ...
3 years, 11 months ago (2017-01-11 16:26:10 UTC) #56
zhaobin
https://codereview.chromium.org/2552343009/diff/270001/third_party/WebKit/LayoutTests/presentation/presentation-api.html File third_party/WebKit/LayoutTests/presentation/presentation-api.html (right): https://codereview.chromium.org/2552343009/diff/270001/third_party/WebKit/LayoutTests/presentation/presentation-api.html#newcode42 third_party/WebKit/LayoutTests/presentation/presentation-api.html:42: }, "Test PresentationRequest API types for multiple URLs."); On ...
3 years, 11 months ago (2017-01-12 00:19:31 UTC) #57
foolip
https://codereview.chromium.org/2552343009/diff/270001/third_party/WebKit/LayoutTests/presentation/presentation-api.html File third_party/WebKit/LayoutTests/presentation/presentation-api.html (right): https://codereview.chromium.org/2552343009/diff/270001/third_party/WebKit/LayoutTests/presentation/presentation-api.html#newcode42 third_party/WebKit/LayoutTests/presentation/presentation-api.html:42: }, "Test PresentationRequest API types for multiple URLs."); On ...
3 years, 11 months ago (2017-01-13 20:29:27 UTC) #66
zhaobin
Add presentation-start.html layout test to address foolip's comments. mlamouri@, do you know what is the ...
3 years, 11 months ago (2017-01-14 00:46:06 UTC) #67
foolip
lgtm for me, the GC bits seem odd but I'll leave to mlamouri@ to judge. ...
3 years, 11 months ago (2017-01-16 12:01:13 UTC) #69
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/2552343009/330001
3 years, 11 months ago (2017-01-17 21:20:15 UTC) #77
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 21:26:30 UTC) #80
Message was sent while issue was closed.
Committed patchset #16 (id:330001) as
https://chromium.googlesource.com/chromium/src/+/ad0eb0fa0ba570b4e41e28383dda...

Powered by Google App Engine
This is Rietveld 408576698