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

Issue 2714693002: [Presentation API] Use connection proxy to change connection state to 'closed' (Closed)

Created:
3 years, 10 months ago by zhaobin
Modified:
3 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, 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, jam, media-router+watch_chromium.org, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Use connection proxy to change connection state to 'closed' blink connection.close() connection_proxy.close() ---> mojo call target_connection_proxy.OnClose() // change both sides' blink connection to 'closed' For 1-UA, it works for both controller and receiver connection. For 2-UA, browser_connection_proxy has no-op OnClose(), and state change is still handled by MRP. Also change message_request_queue_ to std::deque and erase pending send message requests from message queue when closing connection. BUG=688233 Review-Url: https://codereview.chromium.org/2714693002 Cr-Commit-Position: refs/heads/master@{#454391} Committed: https://chromium.googlesource.com/chromium/src/+/fb7c75d163e22589351f06fbef424f94d6e216f8

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix unittest errors #

Patch Set 3 : fix unittest errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -28 lines) Patch
M chrome/browser/media/router/browser_presentation_connection_proxy.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/media/router/browser_presentation_connection_proxy_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/presentation/presentation_service_impl_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/presentation/presentation_connection_proxy.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/presentation/presentation_connection_proxy.cc View 1 chunk +18 lines, -5 lines 0 comments Download
M content/renderer/presentation/presentation_connection_proxy_unittest.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.h View 3 chunks +6 lines, -4 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 5 chunks +27 lines, -12 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher_unittest.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp View 1 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionProxy.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/presentation.mojom View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
zhaobin
3 years, 10 months ago (2017-02-23 04:12:37 UTC) #2
mark a. foltz
LGTM Nice patch :-) It would be good to add a layout test for controller ...
3 years, 9 months ago (2017-03-01 06:14:03 UTC) #3
imcheng
lgtm. It would be good to have followups for: - Replacing the shared queue in ...
3 years, 9 months ago (2017-03-02 00:03:30 UTC) #4
zhaobin
+dcheng@ for mojo related change: third_party/WebKit/public/platform/modules/presentation/presentation.mojom Following bugs track comments from imcheng@ and mfoltz@: crbug.com/684116 ...
3 years, 9 months ago (2017-03-02 03:33:42 UTC) #6
dcheng
mojo lgtm https://codereview.chromium.org/2714693002/diff/1/content/renderer/presentation/presentation_connection_proxy.cc File content/renderer/presentation/presentation_connection_proxy.cc (right): https://codereview.chromium.org/2714693002/diff/1/content/renderer/presentation/presentation_connection_proxy.cc#newcode68 content/renderer/presentation/presentation_connection_proxy.cc:68: blink::WebPresentationConnectionState::Connected); Kind of feels like it'd be ...
3 years, 9 months ago (2017-03-02 07:31:08 UTC) #7
zhaobin
https://codereview.chromium.org/2714693002/diff/1/content/renderer/presentation/presentation_connection_proxy.cc File content/renderer/presentation/presentation_connection_proxy.cc (right): https://codereview.chromium.org/2714693002/diff/1/content/renderer/presentation/presentation_connection_proxy.cc#newcode68 content/renderer/presentation/presentation_connection_proxy.cc:68: blink::WebPresentationConnectionState::Connected); On 2017/03/02 07:31:07, dcheng wrote: > Kind of ...
3 years, 9 months ago (2017-03-02 21:52:21 UTC) #12
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/2714693002/40001
3 years, 9 months ago (2017-03-02 21:53:36 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 21:59:35 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/fb7c75d163e22589351f06fbef42...

Powered by Google App Engine
This is Rietveld 408576698