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

Issue 68173025: Introduce new interface for MediaInternals updates. (Closed)

Created:
7 years, 1 month ago by DaleCurtis
Modified:
7 years ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Introduce new interface for MediaInternals updates. New and shiny! - Interface lives in media. - Adds support for tracking AudioOutputStreams instead of just just AudioOutputControllers. - Adds support for tracking AudioInputControllers (which are 1:1 with AudioInputStreams currently). - Changes the API to be threadsafe from all threads instead of just the IO thread. - Removes the nebulous OnSetAudioStreamStatus(). - Removes OnMediaEvents() from the public media API, will still be callable from the content implementation. - "Improves" the style of media-internals. - Fixes JavaScript errors from firing WebUI code before the WebUI finishes loading. - Fixes style inconsistencies around table headers. - Fixes stuck "copy to clipboard" window. Screenshot of the new UI: http://i.imgur.com/lzQds3e.png Still to be done: - Actually log AudioOutputStreams and AudioInputStreams. BUG=260005 TEST=New unittest! Interface works. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237447

Patch Set 1 #

Patch Set 2 : Rename to AudioLog. #

Total comments: 8

Patch Set 3 : AudioLogFactory. #

Patch Set 4 : Add impl. Maintain sanity? #

Total comments: 8

Patch Set 5 : Add JavaScript. #

Total comments: 12

Patch Set 6 : Comments. CSS nits. #

Patch Set 7 : Export. Fix qualifiers. #

Patch Set 8 : Fix JavaScript test. Use non-exported base. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+630 lines, -491 lines) Patch
M content/browser/media/media_internals.h View 1 2 3 4 5 6 7 2 chunks +39 lines, -67 lines 0 comments Download
M content/browser/media/media_internals.cc View 1 2 3 4 5 3 chunks +164 lines, -123 lines 0 comments Download
M content/browser/media/media_internals_handler.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/media/media_internals_handler.cc View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M content/browser/media/media_internals_unittest.cc View 1 2 3 4 5 6 1 chunk +111 lines, -142 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 2 3 8 chunks +8 lines, -23 lines 0 comments Download
M content/browser/resources/media/client_renderer.js View 1 2 3 4 5 9 chunks +95 lines, -45 lines 0 comments Download
M content/browser/resources/media/main.js View 1 2 3 4 2 chunks +11 lines, -22 lines 0 comments Download
M content/browser/resources/media/manager.js View 1 2 3 4 1 chunk +27 lines, -25 lines 0 comments Download
M content/browser/resources/media/media_internals.css View 1 2 3 4 5 3 chunks +28 lines, -19 lines 0 comments Download
M content/browser/resources/media/media_internals.html View 1 2 3 4 3 chunks +18 lines, -8 lines 0 comments Download
M content/test/data/media/webui/integration_test.html View 1 2 3 4 5 6 7 2 chunks +33 lines, -13 lines 0 comments Download
A media/audio/audio_logging.h View 1 2 3 7 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
DaleCurtis
WDYT? I realized as I uploaded this that it has become entirely an AudioInternals interface... ...
7 years, 1 month ago (2013-11-16 00:43:14 UTC) #1
DaleCurtis
Since scherkus@ seems overloaded and I don't send near enough reviews to acolwell@, over to ...
7 years, 1 month ago (2013-11-20 20:03:46 UTC) #2
acolwell GONE FROM CHROMIUM
It is hard to evaluate this w/o seeing the code that will use this interface. ...
7 years, 1 month ago (2013-11-20 20:14:42 UTC) #3
DaleCurtis
The interface is modeled after the existing MediaInternals class: https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/media/media_internals.h You can see how it's ...
7 years, 1 month ago (2013-11-20 21:18:24 UTC) #4
DaleCurtis
WDYT about an interface like: AudioLogManager { scoped_ptr<AudioLog> CreateAudioLog(component) = 0; } Where AudioLog is: ...
7 years, 1 month ago (2013-11-20 21:38:36 UTC) #5
DaleCurtis
PTAL, renamed to AudioLog. Here's a prototype implementation (not ready for review; which ends up ...
7 years, 1 month ago (2013-11-20 23:56:58 UTC) #6
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/68173025/diff/70001/media/base/audio_logging.h File media/base/audio_logging.h (right): https://codereview.chromium.org/68173025/diff/70001/media/base/audio_logging.h#newcode5 media/base/audio_logging.h:5: #ifndef MEDIA_BASE_AUDIO_LOGGING_H_ It seems like media/audio would be a ...
7 years, 1 month ago (2013-11-21 00:53:57 UTC) #7
DaleCurtis
https://codereview.chromium.org/68173025/diff/70001/media/base/audio_logging.h File media/base/audio_logging.h (right): https://codereview.chromium.org/68173025/diff/70001/media/base/audio_logging.h#newcode5 media/base/audio_logging.h:5: #ifndef MEDIA_BASE_AUDIO_LOGGING_H_ On 2013/11/21 00:53:58, acolwell wrote: > It ...
7 years, 1 month ago (2013-11-21 01:18:29 UTC) #8
DaleCurtis
Please take a high level look. The CL is still missing the JavaScript implementation, but ...
7 years, 1 month ago (2013-11-22 00:59:53 UTC) #9
acolwell GONE FROM CHROMIUM
This looks reasonable to me. https://codereview.chromium.org/68173025/diff/210001/content/browser/media/media_internals.cc File content/browser/media/media_internals.cc (right): https://codereview.chromium.org/68173025/diff/210001/content/browser/media/media_internals.cc#newcode104 content/browser/media/media_internals.cc:104: SendSingleStringUpdate(component_id, kAudioLogStatusKey, "closed", true); ...
7 years, 1 month ago (2013-11-22 21:01:21 UTC) #10
DaleCurtis
(just comments) https://codereview.chromium.org/68173025/diff/210001/content/browser/media/media_internals.cc File content/browser/media/media_internals.cc (right): https://codereview.chromium.org/68173025/diff/210001/content/browser/media/media_internals.cc#newcode104 content/browser/media/media_internals.cc:104: SendSingleStringUpdate(component_id, kAudioLogStatusKey, "closed", true); On 2013/11/22 21:01:21, ...
7 years, 1 month ago (2013-11-22 21:16:03 UTC) #11
DaleCurtis
PTAL. Implementation of UI and backend is complete minus plumbing for AudioOutputStreams and AudioInputControllers which ...
7 years ago (2013-11-25 22:57:18 UTC) #12
acolwell GONE FROM CHROMIUM
Looks pretty good to me. Just a few comments, but wanted to hold of on ...
7 years ago (2013-11-26 01:33:17 UTC) #13
DaleCurtis
https://codereview.chromium.org/68173025/diff/350001/content/browser/media/media_internals.cc File content/browser/media/media_internals.cc (right): https://codereview.chromium.org/68173025/diff/350001/content/browser/media/media_internals.cc#newcode217 content/browser/media/media_internals.cc:217: SendUpdate(SerializeUpdate(function, value)); On 2013/11/26 01:33:17, acolwell wrote: > This ...
7 years ago (2013-11-26 03:02:20 UTC) #14
acolwell GONE FROM CHROMIUM
lgtm
7 years ago (2013-11-26 17:35:07 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/68173025/370001
7 years ago (2013-11-26 18:36:51 UTC) #16
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=195374
7 years ago (2013-11-26 18:58:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/68173025/390001
7 years ago (2013-11-26 20:52:33 UTC) #18
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=195461
7 years ago (2013-11-26 21:30:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/68173025/410001
7 years ago (2013-11-26 22:15:07 UTC) #20
commit-bot: I haz the power
7 years ago (2013-11-27 00:11:46 UTC) #21
Message was sent while issue was closed.
Change committed as 237447

Powered by Google App Engine
This is Rietveld 408576698