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

Issue 2874483002: [Presentation API] Remove closed connections from PresentationConnectionList (Closed)

Created:
3 years, 7 months ago by zhaobin
Modified:
3 years, 7 months ago
Reviewers:
mark a. foltz
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, haraken, jam, mfoltz+watch_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Remove closed connections from PresentationConnectionList - Added WebPresentationReceiver::RemoveConnection() API - Added WebPresentationReceiver pointer to ReceiverConnectionProxy. WebPresentationReceiver::RemoveConnection() is invoked when receiver connection changes to 'closed' - In PresentationDispatcher::OnReceiverConnectionAvailable, pass receiver_ pointer to ReceiverConnectionProxy BUG=713227 Review-Url: https://codereview.chromium.org/2874483002 Cr-Commit-Position: refs/heads/master@{#473773} Committed: https://chromium.googlesource.com/chromium/src/+/e17728ae5d18e371378473c0b4637940f95c3967

Patch Set 1 #

Total comments: 2

Patch Set 2 : pass WebPresentationReceiver* to ReceiverConnectionProxy #

Patch Set 3 : rebase with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -13 lines) Patch
M content/renderer/presentation/presentation_connection_proxy.h View 1 2 4 chunks +11 lines, -3 lines 0 comments Download
M content/renderer/presentation/presentation_connection_proxy.cc View 1 2 4 chunks +14 lines, -3 lines 0 comments Download
M content/renderer/presentation/presentation_connection_proxy_unittest.cc View 1 2 6 chunks +19 lines, -2 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/presentation/presentation_dispatcher_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/presentation/presentation-controller-close-connection.html View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-close-connection.html View 1 chunk +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp View 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationReceiver.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp View 1 chunk +25 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/WebPresentationReceiver.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
zhaobin
3 years, 7 months ago (2017-05-09 20:32:34 UTC) #2
mark a. foltz
Looks okay. Instead of binding a callback, would it be simpler to pass WebPresentationReceiver* to ...
3 years, 7 months ago (2017-05-12 22:22:19 UTC) #3
zhaobin
https://codereview.chromium.org/2874483002/diff/1/content/renderer/presentation/presentation_connection_proxy.h File content/renderer/presentation/presentation_connection_proxy.h (right): https://codereview.chromium.org/2874483002/diff/1/content/renderer/presentation/presentation_connection_proxy.h#newcode120 content/renderer/presentation/presentation_connection_proxy.h:120: // |source_connection_| from blink PresentationReceiver's connection list. On 2017/05/12 ...
3 years, 7 months ago (2017-05-15 17:46:03 UTC) #4
mark a. foltz
lgtm
3 years, 7 months ago (2017-05-15 21:38:47 UTC) #5
mark a. foltz
On 2017/05/15 21:38:47, mark a. foltz wrote: > lgtm Don't forget to update the CL ...
3 years, 7 months ago (2017-05-15 21:39:20 UTC) #6
zhaobin
On 2017/05/15 21:39:20, mark a. foltz wrote: > On 2017/05/15 21:38:47, mark a. foltz wrote: ...
3 years, 7 months ago (2017-05-16 18:12:02 UTC) #8
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/2874483002/40001
3 years, 7 months ago (2017-05-23 01:13:11 UTC) #19
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 01:19:21 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e17728ae5d18e371378473c0b463...

Powered by Google App Engine
This is Rietveld 408576698