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

Issue 2538853002: Media Remoting: Draw remoting interstitial on poster image. (Closed)

Created:
4 years ago by xjz
Modified:
3 years, 11 months ago
Reviewers:
xhwang, miu, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, chromoting-reviews_chromium.org, nasko+codewatch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, apacible+watch_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media Remoting: Draw remoting interstitial on poster image. Download the poster image when it is available and draw remoting interstial on it. Changes in this CL: 1. Refactored ImageDownloaderImpl and abstracted the core parts that does the image downloading to ImageDownloaderBase. There should be no behaviour change for ImageDownloaderImpl. 2. Added SingleImageDownloader which is a one time image downloader working in Renderer to return a single image, and can be self-destructed when downloading finishes. 3. RemotingRendererController will initiate the downloading when the interstitial needs to be shown if poster image URL changes. BUG=643964 Committed: https://crrev.com/c102fd8444b2cde0699f0a9a5b812e2d9a923d85 Cr-Commit-Position: refs/heads/master@{#441448}

Patch Set 1 #

Total comments: 24

Patch Set 2 : Addressed comments. #

Total comments: 37

Patch Set 3 : Addressed comments. #

Patch Set 4 : Don't delete in ImageDownloaderBase when RenderFrame is destructed. #

Patch Set 5 : Removed the change to update/show interstial from this CL. #

Total comments: 2

Patch Set 6 : Addressed xhwang's comment. #

Total comments: 22

Patch Set 7 : Addressed comments. #

Total comments: 4

Patch Set 8 : Addressed miu's comments. #

Total comments: 7

Patch Set 9 : Rebased only. #

Patch Set 10 : Rebased again and Merged. #

Patch Set 11 : Use base::<Optional> to tell that the background is unchanged. #

Total comments: 6

Patch Set 12 : Addressed nasko's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -392 lines) Patch
M content/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/fetchers/multi_resolution_image_resource_fetcher.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A + content/renderer/image_downloader/image_downloader_base.h View 1 2 1 chunk +27 lines, -52 lines 0 comments Download
A + content/renderer/image_downloader/image_downloader_base.cc View 1 2 3 4 chunks +29 lines, -140 lines 0 comments Download
M content/renderer/image_downloader/image_downloader_impl.h View 1 2 3 1 chunk +11 lines, -58 lines 0 comments Download
M content/renderer/image_downloader/image_downloader_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +12 lines, -112 lines 0 comments Download
A content/renderer/image_downloader/single_image_downloader.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +43 lines, -0 lines 0 comments Download
A content/renderer/image_downloader/single_image_downloader.cc View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M media/base/media_observer.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -4 lines 0 comments Download
M media/remoting/remote_renderer_impl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -5 lines 0 comments Download
M media/remoting/remote_renderer_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M media/remoting/remoting_renderer_controller.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +38 lines, -9 lines 0 comments Download
M media/remoting/remoting_renderer_controller.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +50 lines, -7 lines 0 comments Download

Messages

Total messages: 49 (23 generated)
xjz
PTAL
4 years ago (2016-11-29 19:33:11 UTC) #3
miu
I'm wondering if we're hacking at ImageDownloaderImpl and RenderFrameImpl too much to make this work? ...
4 years ago (2016-11-29 22:56:09 UTC) #4
xjz
Thanks miu. Addressed you comments. PTAL. Thanks! Main changes in PS#2: 1. Abstract the core ...
4 years ago (2016-12-02 19:23:11 UTC) #7
miu
Comments on PS2: https://codereview.chromium.org/2538853002/diff/40001/content/renderer/image_downloader/image_downloader_core.cc File content/renderer/image_downloader/image_downloader_core.cc (right): https://codereview.chromium.org/2538853002/diff/40001/content/renderer/image_downloader/image_downloader_core.cc#newcode50 content/renderer/image_downloader/image_downloader_core.cc:50: : render_frame_(render_frame) { It makes sense ...
4 years ago (2016-12-03 01:05:31 UTC) #8
xjz
Addressed comments. PTAL https://codereview.chromium.org/2538853002/diff/40001/content/renderer/image_downloader/image_downloader_core.cc File content/renderer/image_downloader/image_downloader_core.cc (right): https://codereview.chromium.org/2538853002/diff/40001/content/renderer/image_downloader/image_downloader_core.cc#newcode50 content/renderer/image_downloader/image_downloader_core.cc:50: : render_frame_(render_frame) { On 2016/12/03 01:05:30, ...
4 years ago (2016-12-06 19:50:55 UTC) #10
xjz
Make changes in PS#4 after offline discussion. PTAL. Thanks! Now removed "delete this" in ImageDownloaderBase ...
4 years ago (2016-12-06 23:58:17 UTC) #11
xjz
miu: I moved the control of interstitial update out of this CL, and make a ...
4 years ago (2016-12-13 21:37:25 UTC) #12
xjz
miu: I moved the control of interstitial update out of this CL. PTAL. Thanks!
4 years ago (2016-12-13 22:21:41 UTC) #13
xjz
Add xhwang for media/base and media/blink changes.
4 years ago (2016-12-14 23:27:31 UTC) #15
xhwang
lgtm % nit https://codereview.chromium.org/2538853002/diff/120001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2538853002/diff/120001/media/blink/webmediaplayer_impl.h#newcode194 media/blink/webmediaplayer_impl.h:194: void setPoster(const blink::WebURL& poster) override; This ...
4 years ago (2016-12-15 18:35:23 UTC) #16
xjz
Thanks xhwang. Addressed your comment.
4 years ago (2016-12-16 02:14:37 UTC) #20
miu
Comments for PS6: https://codereview.chromium.org/2538853002/diff/140001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc File content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc (right): https://codereview.chromium.org/2538853002/diff/140001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc#newcode84 content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc:84: void MultiResolutionImageResourceFetcher::OnRenderFrameDestruct() { Nice! I like ...
4 years ago (2016-12-20 00:48:07 UTC) #21
xjz
Addressed comments. PTAL. https://codereview.chromium.org/2538853002/diff/140001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc File content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc (right): https://codereview.chromium.org/2538853002/diff/140001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc#newcode84 content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc:84: void MultiResolutionImageResourceFetcher::OnRenderFrameDestruct() { On 2016/12/20 00:48:06, ...
4 years ago (2016-12-20 21:46:26 UTC) #22
miu
PS7 lgtm % a couple minor things: https://codereview.chromium.org/2538853002/diff/160001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2538853002/diff/160001/media/remoting/remoting_renderer_controller.cc#newcode82 media/remoting/remoting_renderer_controller.cc:82: // TODO(xjz): ...
4 years ago (2016-12-20 23:34:22 UTC) #23
xjz
miu: Thanks for reviewing. Addressed your comments. https://codereview.chromium.org/2538853002/diff/160001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2538853002/diff/160001/media/remoting/remoting_renderer_controller.cc#newcode82 media/remoting/remoting_renderer_controller.cc:82: // TODO(xjz): ...
4 years ago (2016-12-21 01:28:40 UTC) #24
xjz
nasko: PTAL the changes on content/*. Thanks! Main changes: 1. Refactored the ImageDownloaderImpl. Abstracted the ...
4 years ago (2016-12-21 01:33:45 UTC) #26
miu
Comments on PS7: https://codereview.chromium.org/2538853002/diff/180001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2538853002/diff/180001/media/remoting/remoting_renderer_controller.cc#newcode81 media/remoting/remoting_renderer_controller.cc:81: DownloadPosterImage(); What if the URL is ...
4 years ago (2016-12-22 02:04:02 UTC) #31
xjz
miu: Rebased and merged with the other CL. PTAL again. Thanks! https://codereview.chromium.org/2538853002/diff/180001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): ...
4 years ago (2016-12-22 20:13:09 UTC) #32
xjz
Addressed miu's comments in PS# 11. PTAL. Thanks! https://codereview.chromium.org/2538853002/diff/120001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2538853002/diff/120001/media/blink/webmediaplayer_impl.h#newcode194 media/blink/webmediaplayer_impl.h:194: void ...
4 years ago (2016-12-22 23:21:12 UTC) #33
xjz
ping nasko: need OWNER's approval on content/*. PTAL or suggest someone else. Thanks!
3 years, 11 months ago (2017-01-03 19:25:51 UTC) #38
miu
PS11 lgtm
3 years, 11 months ago (2017-01-03 21:16:18 UTC) #39
nasko
LGTM with a few nits. https://codereview.chromium.org/2538853002/diff/240001/content/renderer/image_downloader/image_downloader_impl.cc File content/renderer/image_downloader/image_downloader_impl.cc (right): https://codereview.chromium.org/2538853002/diff/240001/content/renderer/image_downloader/image_downloader_impl.cc#newcode106 content/renderer/image_downloader/image_downloader_impl.cc:106: // Owns itself. Will ...
3 years, 11 months ago (2017-01-04 17:45:33 UTC) #40
xjz
Thanks nasko! Addressed your comments. https://codereview.chromium.org/2538853002/diff/240001/content/renderer/image_downloader/image_downloader_impl.cc File content/renderer/image_downloader/image_downloader_impl.cc (right): https://codereview.chromium.org/2538853002/diff/240001/content/renderer/image_downloader/image_downloader_impl.cc#newcode106 content/renderer/image_downloader/image_downloader_impl.cc:106: // Owns itself. Will ...
3 years, 11 months ago (2017-01-04 18:37:58 UTC) #41
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/2538853002/260001
3 years, 11 months ago (2017-01-04 18:38:56 UTC) #44
commit-bot: I haz the power
Committed patchset #12 (id:260001)
3 years, 11 months ago (2017-01-04 20:14:29 UTC) #47
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 20:19:32 UTC) #49
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/c102fd8444b2cde0699f0a9a5b812e2d9a923d85
Cr-Commit-Position: refs/heads/master@{#441448}

Powered by Google App Engine
This is Rietveld 408576698