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

Issue 23735002: Migrate media::MediaPlayerManager::Create() to content::BrowserMediaPlayerManager. (Closed)

Created:
7 years, 3 months ago by scherkus (not reviewing)
Modified:
7 years, 3 months ago
Reviewers:
whywhat, qinmin, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org, whywhat
Visibility:
Public.

Description

Migrate media::MediaPlayerManager::Create() to content::BrowserMediaPlayerManager. This fixes a layering violation where content::RenderViewHost was forward declared in media code. It also lets content code use BrowserMediaPlayerManager directly without resorting to casting. BUG=263652 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220520

Patch Set 1 : #

Total comments: 10

Patch Set 2 : fixes #

Total comments: 2

Patch Set 3 : fix fwd decl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -65 lines) Patch
M content/browser/android/browser_media_player_manager.h View 1 2 chunks +8 lines, -5 lines 0 comments Download
M content/browser/android/browser_media_player_manager.cc View 1 1 chunk +9 lines, -14 lines 0 comments Download
M content/browser/android/child_process_launcher_android.cc View 2 chunks +1 line, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 chunks +4 lines, -12 lines 0 comments Download
M content/browser/android/surface_texture_peer_browser_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 chunks +3 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 2 chunks +1 line, -1 line 0 comments Download
M media/base/android/media_player_manager.h View 2 chunks +0 lines, -21 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
scherkus (not reviewing)
+avayvod for CC
7 years, 3 months ago (2013-08-29 18:45:46 UTC) #1
whywhat
It seems a shame to loose an ability to provide a totally separate implementation of ...
7 years, 3 months ago (2013-08-29 18:57:25 UTC) #2
qinmin
lgtm % nits https://codereview.chromium.org/23735002/diff/10001/content/browser/android/browser_media_player_manager.cc File content/browser/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/23735002/diff/10001/content/browser/android/browser_media_player_manager.cc#newcode36 content/browser/android/browser_media_player_manager.cc:36: content::RenderViewHost* rvh) { ditto https://codereview.chromium.org/23735002/diff/10001/content/browser/android/browser_media_player_manager.h File ...
7 years, 3 months ago (2013-08-29 18:58:46 UTC) #3
qinmin
https://codereview.chromium.org/23735002/diff/10001/content/browser/android/browser_media_player_manager.h File content/browser/android/browser_media_player_manager.h (right): https://codereview.chromium.org/23735002/diff/10001/content/browser/android/browser_media_player_manager.h#newcode43 content/browser/android/browser_media_player_manager.h:43: typedef BrowserMediaPlayerManager* (*Factory)(content::RenderViewHost*); nit: remove content::
7 years, 3 months ago (2013-08-29 18:59:41 UTC) #4
scherkus (not reviewing)
On 2013/08/29 18:57:25, whywhat wrote: > It seems a shame to loose an ability to ...
7 years, 3 months ago (2013-08-29 19:11:54 UTC) #5
scherkus (not reviewing)
thanks for the reviews! https://codereview.chromium.org/23735002/diff/10001/content/browser/android/browser_media_player_manager.cc File content/browser/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/23735002/diff/10001/content/browser/android/browser_media_player_manager.cc#newcode36 content/browser/android/browser_media_player_manager.cc:36: content::RenderViewHost* rvh) { On 2013/08/29 ...
7 years, 3 months ago (2013-08-29 19:12:04 UTC) #6
scherkus (not reviewing)
+jam for content/browser/* OWNERS
7 years, 3 months ago (2013-08-29 19:14:24 UTC) #7
jam
lgtm https://codereview.chromium.org/23735002/diff/17001/content/browser/renderer_host/render_view_host_impl.h File content/browser/renderer_host/render_view_host_impl.h (right): https://codereview.chromium.org/23735002/diff/17001/content/browser/renderer_host/render_view_host_impl.h#newcode71 content/browser/renderer_host/render_view_host_impl.h:71: #if defined(OS_ANDROID) nit: it's easier to read if ...
7 years, 3 months ago (2013-08-29 20:27:24 UTC) #8
scherkus (not reviewing)
https://codereview.chromium.org/23735002/diff/17001/content/browser/renderer_host/render_view_host_impl.h File content/browser/renderer_host/render_view_host_impl.h (right): https://codereview.chromium.org/23735002/diff/17001/content/browser/renderer_host/render_view_host_impl.h#newcode71 content/browser/renderer_host/render_view_host_impl.h:71: #if defined(OS_ANDROID) On 2013/08/29 20:27:25, jam wrote: > nit: ...
7 years, 3 months ago (2013-08-29 20:31:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/23735002/30001
7 years, 3 months ago (2013-08-29 20:32:19 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 06:40:21 UTC) #11
Message was sent while issue was closed.
Change committed as 220520

Powered by Google App Engine
This is Rietveld 408576698