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

Issue 231933006: Move ExternalVideoSurfaceHolder from WebContents UserData to BrowserMediaPlayerManager. (Closed)

Created:
6 years, 8 months ago by ycheo (away)
Modified:
6 years, 8 months ago
Reviewers:
Ted C, qinmin, jam, boliu
CC:
chromium-reviews, yusukes+watch_chromium.org, nona+watch_chromium.org, avayvod+watch_chromium.org, penghuang+watch_chromium.org, yukishiino+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, James Su, android-webview-reviews_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move ExternalVideoSurfaceHolder from WebContents UserData to BrowserMediaPlayerManager. Static functions in ExternalVideoSurfaceContainer hinder from building and linking 'content' by itself. So I moved the creation of ExternalVideoSurfaceContainer into ContentBrowserClient and its storage into BrowserMediaPlayerManager. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263868

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed boliu's comments #

Total comments: 14

Patch Set 3 : Addressed the reviewers' comments #

Total comments: 2

Patch Set 4 : Addressed boliu's comments #

Patch Set 5 : missed changes on adding the prefix 'Override'. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -75 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M android_webview/browser/jni_dependency_factory.h View 2 chunks +5 lines, -0 lines 0 comments Download
M android_webview/lib/main/aw_main_delegate.h View 2 chunks +6 lines, -0 lines 0 comments Download
M android_webview/lib/main/aw_main_delegate.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download
M android_webview/native/external_video_surface_container_impl.h View 1 chunk +1 line, -3 lines 0 comments Download
M android_webview/native/external_video_surface_container_impl.cc View 1 chunk +0 lines, -21 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.h View 1 2 3 5 chunks +12 lines, -5 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 4 4 chunks +29 lines, -18 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 2 chunks +21 lines, -12 lines 0 comments Download
M content/public/browser/android/external_video_surface_container.h View 2 chunks +0 lines, -9 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
ycheo (away)
6 years, 8 months ago (2014-04-11 01:27:48 UTC) #1
boliu
Mostly looks good. +tedchoc and qinmin for android/media things in content +jam for opinion on ...
6 years, 8 months ago (2014-04-11 01:52:09 UTC) #2
ycheo (away)
https://codereview.chromium.org/231933006/diff/1/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/231933006/diff/1/android_webview/browser/aw_content_browser_client.cc#newcode506 android_webview/browser/aw_content_browser_client.cc:506: AwContentBrowserClient::CreateExternalVideoSurfaceContainer( On 2014/04/11 01:52:10, boliu wrote: > nit: No ...
6 years, 8 months ago (2014-04-11 05:05:45 UTC) #3
ycheo (away)
https://codereview.chromium.org/231933006/diff/1/content/public/browser/content_browser_client.cc File content/public/browser/content_browser_client.cc (right): https://codereview.chromium.org/231933006/diff/1/content/public/browser/content_browser_client.cc#newcode320 content/public/browser/content_browser_client.cc:320: ContentBrowserClient::CreateExternalVideoSurfaceContainer( On 2014/04/11 01:52:10, boliu wrote: > nit: No ...
6 years, 8 months ago (2014-04-11 05:06:12 UTC) #4
jam
On 2014/04/11 01:52:09, boliu wrote: > Mostly looks good. > > +tedchoc and qinmin for ...
6 years, 8 months ago (2014-04-11 17:41:14 UTC) #5
Ted C
lgtm w/ some small comments https://codereview.chromium.org/231933006/diff/20001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/231933006/diff/20001/content/browser/media/android/browser_media_player_manager.cc#newcode442 content/browser/media/android/browser_media_player_manager.cc:442: if (external_video_surface_container_) { braces ...
6 years, 8 months ago (2014-04-11 17:50:10 UTC) #6
boliu
On 2014/04/11 17:41:14, jam wrote: > On 2014/04/11 01:52:09, boliu wrote: > > Mostly looks ...
6 years, 8 months ago (2014-04-11 17:51:49 UTC) #7
jam
https://codereview.chromium.org/231933006/diff/20001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/231933006/diff/20001/content/public/browser/content_browser_client.h#newcode653 content/public/browser/content_browser_client.h:653: virtual ExternalVideoSurfaceContainer* CreateExternalVideoSurfaceContainer( nit: the convention is to begin ...
6 years, 8 months ago (2014-04-11 17:56:42 UTC) #8
qinmin
lgtm % nit https://codereview.chromium.org/231933006/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/231933006/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode922 content/browser/renderer_host/render_widget_host_view_android.cc:922: RenderViewHostImpl* rvhi = static_cast<RenderViewHostImpl*>( nit: indent ...
6 years, 8 months ago (2014-04-11 17:58:47 UTC) #9
ycheo (away)
https://codereview.chromium.org/231933006/diff/20001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/231933006/diff/20001/content/browser/media/android/browser_media_player_manager.cc#newcode442 content/browser/media/android/browser_media_player_manager.cc:442: if (external_video_surface_container_) { On 2014/04/11 17:50:10, Ted C wrote: ...
6 years, 8 months ago (2014-04-14 04:35:17 UTC) #10
boliu
aw lgtm https://codereview.chromium.org/231933006/diff/20001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/231933006/diff/20001/content/browser/media/android/browser_media_player_manager.cc#newcode469 content/browser/media/android/browser_media_player_manager.cc:469: if (external_video_surface_container_) { On 2014/04/14 04:35:17, Yuncheol ...
6 years, 8 months ago (2014-04-14 04:55:35 UTC) #11
ycheo (away)
https://codereview.chromium.org/231933006/diff/20001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/231933006/diff/20001/content/browser/media/android/browser_media_player_manager.cc#newcode469 content/browser/media/android/browser_media_player_manager.cc:469: if (external_video_surface_container_) { On 2014/04/14 04:55:36, boliu wrote: > ...
6 years, 8 months ago (2014-04-14 13:25:03 UTC) #12
ycheo (away)
The CQ bit was checked by ycheo@chromium.org
6 years, 8 months ago (2014-04-15 04:58:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ycheo@chromium.org/231933006/70001
6 years, 8 months ago (2014-04-15 05:00:12 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-15 11:55:12 UTC) #15
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 8 months ago (2014-04-15 11:55:12 UTC) #16
ycheo (away)
The CQ bit was checked by ycheo@chromium.org
6 years, 8 months ago (2014-04-15 13:20:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ycheo@chromium.org/231933006/70001
6 years, 8 months ago (2014-04-15 13:20:27 UTC) #18
commit-bot: I haz the power
6 years, 8 months ago (2014-04-15 16:28:41 UTC) #19
Message was sent while issue was closed.
Change committed as 263868

Powered by Google App Engine
This is Rietveld 408576698