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

Issue 2289543003: IPC->mojo of audio_renderer_host (Closed)

Created:
4 years, 3 months ago by Max Morin
Modified:
3 years, 10 months ago
Reviewers:
Henrik Grunell, o1ka
CC:
Guido Urdaneta
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Work in progress! BUG=

Patch Set 1 : ~Ameyas CL #

Patch Set 2 : Compile. Rip out more old IPC stuff. #

Patch Set 3 : It builds \o/. #

Total comments: 33

Patch Set 4 : Some changes. Comments. #

Total comments: 8

Patch Set 5 : New interfaces. #

Total comments: 8

Patch Set 6 : Interface changes. #

Patch Set 7 : New interface. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+768 lines, -962 lines) Patch
M content/browser/renderer_host/media/audio_renderer_host.h View 1 2 3 4 5 8 chunks +49 lines, -36 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 2 3 4 5 6 30 chunks +284 lines, -237 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.cc View 1 2 3 4 5 6 1 chunk +8 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M content/common/BUILD.gn View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/media/audio_messages.h View 1 5 chunks +0 lines, -67 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
D content/renderer/media/audio_message_filter.h View 1 1 chunk +0 lines, -109 lines 0 comments Download
D content/renderer/media/audio_message_filter.cc View 1 1 chunk +0 lines, -237 lines 0 comments Download
D content/renderer/media/audio_message_filter_unittest.cc View 1 1 chunk +0 lines, -207 lines 0 comments Download
A content/renderer/media/audio_output_ipc_factory.h View 1 2 3 4 5 1 chunk +86 lines, -0 lines 0 comments Download
A content/renderer/media/audio_output_ipc_factory.cc View 1 2 3 4 5 1 chunk +272 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 5 chunks +6 lines, -7 lines 0 comments Download
M media/audio/audio_output_device.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M media/audio/audio_output_device.cc View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M media/audio/audio_output_ipc.h View 1 2 3 4 5 1 chunk +2 lines, -13 lines 0 comments Download
M media/mojo/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M media/mojo/interfaces/audio_output.mojom View 1 2 3 4 5 6 1 chunk +33 lines, -22 lines 1 comment Download
M media/mojo/interfaces/typemaps.gni View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
Max Morin
Olga, Henrik: If you want, you can take a look now. Note that not all ...
4 years, 3 months ago (2016-09-01 10:59:03 UTC) #4
Henrik Grunell
Some high level comments. You should involve Dale and perhaps Tommi before we start reviewing ...
4 years, 3 months ago (2016-09-01 15:09:07 UTC) #5
Henrik Grunell
Also, as Olga mentioned, I think a before and after object diagram and maybe call ...
4 years, 3 months ago (2016-09-01 15:11:31 UTC) #6
o1ka
Just started looking into it, some random comments for the beginning :) https://codereview.chromium.org/2289543003/diff/40001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc ...
4 years, 3 months ago (2016-09-02 07:31:47 UTC) #7
Max Morin
I addressed some comments. Many comments will be dealt with later. Right now, creation fails ...
4 years, 3 months ago (2016-09-02 10:27:07 UTC) #8
o1ka
https://codereview.chromium.org/2289543003/diff/40001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/2289543003/diff/40001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode847 content/browser/renderer_host/media/audio_renderer_host.cc:847: BrowserThread::PostTask( Beware of this bug https://bugs.chromium.org/p/chromium/issues/detail?id=633936
4 years, 3 months ago (2016-09-02 11:30:55 UTC) #9
Max Morin
https://codereview.chromium.org/2289543003/diff/40001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/2289543003/diff/40001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode847 content/browser/renderer_host/media/audio_renderer_host.cc:847: BrowserThread::PostTask( On 2016/09/02 11:30:55, o1ka wrote: > Beware of ...
4 years, 3 months ago (2016-09-02 11:37:30 UTC) #10
o1ka
Some comment/questions about the interface https://codereview.chromium.org/2289543003/diff/60001/media/mojo/interfaces/audio_output.mojom File media/mojo/interfaces/audio_output.mojom (right): https://codereview.chromium.org/2289543003/diff/60001/media/mojo/interfaces/audio_output.mojom#newcode16 media/mojo/interfaces/audio_output.mojom:16: interface AudioOutputStream { naming ...
4 years, 3 months ago (2016-09-02 13:07:58 UTC) #11
Max Morin
Take a look at the new interfaces.
4 years, 3 months ago (2016-09-02 13:51:00 UTC) #12
o1ka
https://codereview.chromium.org/2289543003/diff/80001/media/mojo/interfaces/audio_output.mojom File media/mojo/interfaces/audio_output.mojom (right): https://codereview.chromium.org/2289543003/diff/80001/media/mojo/interfaces/audio_output.mojom#newcode12 media/mojo/interfaces/audio_output.mojom:12: interface AudioOutputStream { We need to make sure there ...
4 years, 3 months ago (2016-09-02 15:02:07 UTC) #13
Max Morin
Interface updated. The rest of the code probably does not make sense at all. :) ...
4 years, 3 months ago (2016-09-02 15:34:53 UTC) #14
o1ka
https://codereview.chromium.org/2289543003/diff/80001/media/mojo/interfaces/audio_output.mojom File media/mojo/interfaces/audio_output.mojom (right): https://codereview.chromium.org/2289543003/diff/80001/media/mojo/interfaces/audio_output.mojom#newcode28 media/mojo/interfaces/audio_output.mojom:28: int64 session_id, On 2016/09/02 15:34:53, Max Morin Chromium wrote: ...
4 years, 3 months ago (2016-09-05 08:24:28 UTC) #15
o1ka
cc: guidou@ since he's working on mojo for device enumeration. guidou: this is a work ...
4 years, 3 months ago (2016-09-05 10:11:18 UTC) #16
Max Morin
Olga: I updated the interface. When it looks like this, it can be used in ...
4 years, 3 months ago (2016-09-06 10:49:12 UTC) #17
Max Morin
On 2016/09/06 10:49:12, Max Morin Chromium wrote: > Olga: I updated the interface. When it ...
4 years, 3 months ago (2016-09-06 10:51:03 UTC) #18
Henrik Grunell
4 years, 3 months ago (2016-09-06 11:33:02 UTC) #19
https://codereview.chromium.org/2289543003/diff/120001/media/mojo/interfaces/...
File media/mojo/interfaces/audio_output.mojom (right):

https://codereview.chromium.org/2289543003/diff/120001/media/mojo/interfaces/...
media/mojo/interfaces/audio_output.mojom:34: RequestDeviceAuthorization(
We need to rethink the naming here and/or how we design the interface. Pepper
does not care about authorization - it only uses the default device. It would be
odd to call RequestDeviceAuthorization() when you don't want authorization. One
could of course argue that the default device could also be "authorized", which
it always will be. But I think it makes it clearer if named otherwise.

Let's discuss all this offline.

Powered by Google App Engine
This is Rietveld 408576698