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

Issue 2602523002: [Presentation API] Resolve PresentationRequest::reconnect() with existing presentation connection i… (Closed)

Created:
4 years ago by zhaobin
Modified:
3 years, 11 months ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Resolve PresentationRequest::reconnect() with existing presentation connection if such connection exists Check if any presentation connection with specific presentationUrl and presentationId exists in current browsing context. If so, resolve reconnect() with existing connection instead of creating a new connection. BUG=677540 Committed: https://crrev.com/91a2313e82fff41419fbb149a2bf6debeed894f7 Cr-Commit-Position: refs/heads/master@{#441462}

Patch Set 1 #

Total comments: 4

Patch Set 2 : resolve code review comments from haraken, Mark, and mlamouri #

Total comments: 10

Patch Set 3 : resolve code review comments from mlamouri #

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

Patch Set 5 : remove getExecutionContext() null check in PresentationRequest::reconnect() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -7 lines) Patch
A third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/presentation/ExistingPresentationConnectionCallbacks.h View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/presentation/ExistingPresentationConnectionCallbacks.cpp View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationController.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationController.cpp View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp View 1 2 3 4 3 chunks +25 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
zhaobin
4 years ago (2016-12-23 01:13:58 UTC) #1
zhaobin
4 years ago (2016-12-23 01:14:41 UTC) #3
mlamouri (slow - plz ping)
Can you open a bug with context explaining why we are doing this and also ...
3 years, 12 months ago (2016-12-23 10:35:58 UTC) #4
haraken
https://codereview.chromium.org/2602523002/diff/1/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp File third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp (right): https://codereview.chromium.org/2602523002/diff/1/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp#newcode175 third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp:175: presentationController(getExecutionContext()); Not related to this CL, getExecutionContext() returns null ...
3 years, 12 months ago (2016-12-23 14:26:10 UTC) #6
mark a. foltz
lgtm with one comment; please write a layout test before submitting. The Mojo stub that ...
3 years, 12 months ago (2016-12-23 18:39:43 UTC) #7
zhaobin
Added a layout test. https://codereview.chromium.org/2602523002/diff/1/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp File third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp (right): https://codereview.chromium.org/2602523002/diff/1/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp#newcode69 third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp:69: void ExistingPresentationConnectionCallbacks::onError( On 2016/12/23 18:39:43, ...
3 years, 11 months ago (2016-12-30 05:05:01 UTC) #9
mlamouri (slow - plz ping)
lgtm with comments applied. https://codereview.chromium.org/2602523002/diff/20001/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html File third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html (right): https://codereview.chromium.org/2602523002/diff/20001/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html#newcode30 third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html:30: var connection; = null; https://codereview.chromium.org/2602523002/diff/20001/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp ...
3 years, 11 months ago (2017-01-03 12:02:12 UTC) #10
zhaobin
https://codereview.chromium.org/2602523002/diff/20001/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html File third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html (right): https://codereview.chromium.org/2602523002/diff/20001/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html#newcode30 third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html:30: var connection; On 2017/01/03 12:02:11, mlamouri wrote: > = ...
3 years, 11 months ago (2017-01-03 20:12:07 UTC) #11
haraken
On 2017/01/03 20:12:07, zhaobin wrote: > https://codereview.chromium.org/2602523002/diff/20001/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html > File third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html > (right): > > https://codereview.chromium.org/2602523002/diff/20001/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html#newcode30 ...
3 years, 11 months ago (2017-01-03 21:55:38 UTC) #14
zhaobin
On 2017/01/03 21:55:38, haraken wrote: > On 2017/01/03 20:12:07, zhaobin wrote: > > > https://codereview.chromium.org/2602523002/diff/20001/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html ...
3 years, 11 months ago (2017-01-04 19:03:17 UTC) #17
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/2602523002/80001
3 years, 11 months ago (2017-01-04 19:04:42 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 11 months ago (2017-01-04 21:06:42 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 21:09:03 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/91a2313e82fff41419fbb149a2bf6debeed894f7
Cr-Commit-Position: refs/heads/master@{#441462}

Powered by Google App Engine
This is Rietveld 408576698