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

Issue 7480032: Plumb media data from renderers up to MediaInternals in the browser process. (Closed)

Created:
9 years, 5 months ago by Scott Franklin
Modified:
9 years, 4 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, acolwell+watch_chromium.org, annacc+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing)
Visibility:
Public.

Description

Plumb media data from renderers up to MediaInternals in the browser process. Relanding 95542. Reverted due to issue caused by 95496. BUG=none TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95685

Patch Set 1 #

Patch Set 2 : Much cleanup and making MediaLog thread safe. #

Total comments: 21

Patch Set 3 : Responding to feedback. #

Total comments: 8

Patch Set 4 : Fixing nits and merging with trunk. #

Patch Set 5 : s/MessageLoop/MessageLoopProxy #

Total comments: 4

Patch Set 6 : Renaming events, using atomic increment for ids. #

Patch Set 7 : DEPS #

Patch Set 8 : Merge with trunk. #

Patch Set 9 : Removing extraneous file. #

Patch Set 10 : Merging with trunk (again). If this has conflicts again I'm just going to do it by hand. #

Patch Set 11 : Rebasing onto http://codereview.chromium.org/7491048 prior to (hopefully) relanding. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -6 lines) Patch
A chrome/browser/media/DEPS View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/media/media_internals.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/media/media_internals.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_observer.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/mock_media_observer.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 chunks +8 lines, -0 lines 0 comments Download
A content/common/DEPS View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 1 comment Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -0 lines 2 comments Download
M content/content_renderer.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A content/renderer/media/render_media_log.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A content/renderer/media/render_media_log.cc View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M content/renderer/render_view.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
A media/base/media_log.h View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
A media/base/media_log.cc View 1 2 3 4 5 6 1 chunk +60 lines, -0 lines 0 comments Download
A media/base/media_log_event.h View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 10 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/glue/webmediaplayer_impl.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M webkit/glue/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 7 chunks +13 lines, -2 lines 0 comments Download
M webkit/support/webkit_support.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Scott Franklin
Sorry for the size of this one. This adds the starts of a MediaLog (similar ...
9 years, 5 months ago (2011-07-27 00:08:23 UTC) #1
jam
http://codereview.chromium.org/7480032/diff/2001/content/browser/renderer_host/media/media_log_host.cc File content/browser/renderer_host/media/media_log_host.cc (right): http://codereview.chromium.org/7480032/diff/2001/content/browser/renderer_host/media/media_log_host.cc#newcode17 content/browser/renderer_host/media/media_log_host.cc:17: BrowserMessageFilter::OnChannelClosing(); you don't need to override this http://codereview.chromium.org/7480032/diff/2001/content/browser/renderer_host/media/media_log_host.cc#newcode21 content/browser/renderer_host/media/media_log_host.cc:21: ...
9 years, 4 months ago (2011-07-29 16:08:55 UTC) #2
Scott Franklin
Thanks, this is quite a bit simpler without the dedicated message handler. http://codereview.chromium.org/7480032/diff/2001/content/browser/renderer_host/media/media_log_host.cc File content/browser/renderer_host/media/media_log_host.cc ...
9 years, 4 months ago (2011-07-29 22:30:25 UTC) #3
jam
lgtm with nits http://codereview.chromium.org/7480032/diff/2001/content/renderer/media/content_media_log.cc File content/renderer/media/content_media_log.cc (right): http://codereview.chromium.org/7480032/diff/2001/content/renderer/media/content_media_log.cc#newcode19 content/renderer/media/content_media_log.cc:19: if (MessageLoop::current() == render_loop_) { On ...
9 years, 4 months ago (2011-08-01 06:03:25 UTC) #4
Scott Franklin
http://codereview.chromium.org/7480032/diff/2001/content/renderer/media/content_media_log.cc File content/renderer/media/content_media_log.cc (right): http://codereview.chromium.org/7480032/diff/2001/content/renderer/media/content_media_log.cc#newcode19 content/renderer/media/content_media_log.cc:19: if (MessageLoop::current() == render_loop_) { On 2011/08/01 06:03:25, John ...
9 years, 4 months ago (2011-08-01 18:41:03 UTC) #5
acolwell GONE FROM CHROMIUM
LGTM http://codereview.chromium.org/7480032/diff/12007/media/base/media_log.cc File media/base/media_log.cc (right): http://codereview.chromium.org/7480032/diff/12007/media/base/media_log.cc#newcode12 media/base/media_log.cc:12: static int32 media_log_count = 0; Do we need ...
9 years, 4 months ago (2011-08-03 16:31:37 UTC) #6
Scott Franklin
http://codereview.chromium.org/7480032/diff/12007/media/base/media_log.cc File media/base/media_log.cc (right): http://codereview.chromium.org/7480032/diff/12007/media/base/media_log.cc#newcode12 media/base/media_log.cc:12: static int32 media_log_count = 0; On 2011/08/03 16:31:37, acolwell ...
9 years, 4 months ago (2011-08-03 20:55:03 UTC) #7
commit-bot: I haz the power
Can't process patch for file chrome/browser/media/DEPS. A +
9 years, 4 months ago (2011-08-04 16:44:54 UTC) #8
commit-bot: I haz the power
Can't apply patch for file media/media.gyp. While running patch -p1 --forward --force; patching file media/media.gyp ...
9 years, 4 months ago (2011-08-04 21:36:57 UTC) #9
commit-bot: I haz the power
Change committed as 95542
9 years, 4 months ago (2011-08-05 00:11:52 UTC) #10
commit-bot: I haz the power
Change committed as 95685
9 years, 4 months ago (2011-08-05 23:26:41 UTC) #11
scherkus (not reviewing)
9 years, 4 months ago (2011-08-08 21:20:51 UTC) #12
tiny tiny post-commit drive by stuff

http://codereview.chromium.org/7480032/diff/37001/content/common/DEPS
File content/common/DEPS (right):

http://codereview.chromium.org/7480032/diff/37001/content/common/DEPS#newcode2
content/common/DEPS:2: "+media/base", # For media_log_event.h.
I actually found out you can specify an exact .h file if that helps at all

http://codereview.chromium.org/7480032/diff/37001/content/common/view_messages.h
File content/common/view_messages.h (right):

http://codereview.chromium.org/7480032/diff/37001/content/common/view_message...
content/common/view_messages.h:176: IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
nit: this looks like it should be in AZ order

http://codereview.chromium.org/7480032/diff/37001/content/common/view_message...
content/common/view_messages.h:413:
IPC_STRUCT_TRAITS_BEGIN(media::MediaLogEvent)
possibly ditto for this

Powered by Google App Engine
This is Rietveld 408576698