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

Issue 2547143002: [Presentation API] fire onconnectionavailable and onconnect event asynchronously (Closed)

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

Description

[Presentation API] fire onconnectionavailable and onconnect event asynchronously We would like to ensure following execution order when calling PresentationRequest.start(): 1. resolve start() promise 2. fire PresentationRequest onconnectionavailable event 3. fire PresentationConnection onconnect event To fire event after resolving promise, we need to dispatch events asynchronously BUG=669213 Committed: https://crrev.com/4e188d7c91feaff452f8cf8c93ac48a4393b8e5b Cr-Commit-Position: refs/heads/master@{#437598}

Patch Set 1 #

Total comments: 1

Patch Set 2 : resolve code review comments from Derek #

Patch Set 3 : fire onconnectionavailable event in ::take() instead of PresentationConnectionCallbacks #

Total comments: 6

Patch Set 4 : update comments for PresentationConnection::dispatchEventAsync() #

Patch Set 5 : resolve code review comments from Mark #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -5 lines) Patch
M third_party/WebKit/Source/modules/presentation/PresentationConnection.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp View 1 2 3 4 5 chunks +27 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
zhaobin
4 years ago (2016-12-02 19:52:00 UTC) #2
mark a. foltz
lgtm
4 years ago (2016-12-03 01:36:36 UTC) #3
mlamouri (slow - plz ping)
https://codereview.chromium.org/2547143002/diff/1/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp File third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp (right): https://codereview.chromium.org/2547143002/diff/1/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp#newcode47 third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp:47: wrapPersistent(connection))); Any reason I'm missing why this is not ...
4 years ago (2016-12-05 13:39:10 UTC) #4
imcheng
I am a bit concerned about posting task to dispatch the onconnect event. Doesn't that ...
4 years ago (2016-12-05 19:34:19 UTC) #5
zhaobin
Changed to fire all state change events asynchronously. mlamouri@ according to spec we would like ...
4 years ago (2016-12-05 22:39:42 UTC) #6
mlamouri (slow - plz ping)
On 2016/12/05 at 22:39:42, zhaobin wrote: > Changed to fire all state change events asynchronously. ...
4 years ago (2016-12-06 09:53:08 UTC) #7
zhaobin
Resolving Mounir's comments: firing onConnectionAvailable event in ::take() instead of in PresentationConnectionCallbacks.
4 years ago (2016-12-06 19:58:47 UTC) #8
mark a. foltz
https://codereview.chromium.org/2547143002/diff/40001/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp File third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp (right): https://codereview.chromium.org/2547143002/diff/40001/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp#newcode470 third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp:470: void PresentationConnection::dispatchEventAsync(Event* event) { Can this be combined into ...
4 years ago (2016-12-07 04:23:55 UTC) #9
mlamouri (slow - plz ping)
lgtm with mfoltz comments applied
4 years ago (2016-12-07 14:45:35 UTC) #10
zhaobin
https://codereview.chromium.org/2547143002/diff/40001/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp File third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp (right): https://codereview.chromium.org/2547143002/diff/40001/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp#newcode470 third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp:470: void PresentationConnection::dispatchEventAsync(Event* event) { On 2016/12/07 04:23:55, mark a. ...
4 years ago (2016-12-07 19:30:44 UTC) #11
mark a. foltz
lgtm https://codereview.chromium.org/2547143002/diff/40001/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp File third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp (right): https://codereview.chromium.org/2547143002/diff/40001/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp#newcode470 third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp:470: void PresentationConnection::dispatchEventAsync(Event* event) { On 2016/12/07 at 19:30:43, ...
4 years ago (2016-12-07 21:32:44 UTC) #12
zhaobin
https://codereview.chromium.org/2547143002/diff/40001/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp File third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp (right): https://codereview.chromium.org/2547143002/diff/40001/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp#newcode470 third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp:470: void PresentationConnection::dispatchEventAsync(Event* event) { On 2016/12/07 21:32:44, mark a. ...
4 years ago (2016-12-08 00:16:46 UTC) #13
mark a. foltz
lgtm Nice :)
4 years ago (2016-12-09 05:20:50 UTC) #16
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/2547143002/80001
4 years ago (2016-12-09 18:39:31 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-09 18:49:35 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-12 14:36:37 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4e188d7c91feaff452f8cf8c93ac48a4393b8e5b
Cr-Commit-Position: refs/heads/master@{#437598}

Powered by Google App Engine
This is Rietveld 408576698