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

Issue 20410: Audio related IPC messages and handlers from browser to renderer (Closed)

Created:
11 years, 10 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews_googlegroups.com, scherkus (not reviewing), ralphl, fbarchard
Visibility:
Public.

Description

Audio related IPC messages and handlers from browser to renderer 1. Added 4 IPC messages and corresponding handlers for audio: - RequestAudioPacket(int stream_id) Browser process is hungry for audio packet, notify renderer process to provide more. - NotifyAudioStreamCreated(int stream_id, SharedMemoryHandler buffer, int len) Notify stream created event and provide buffer for filling in the future. - NotifyAudioStreamStateChanged(int stream_id, enum state, nt info) The internal state of the audio stream has chagned, notify renderer process of the change. int info provides additional information of the change, e.g. platform specific error code. - NotifyAudioStreamVolume(int stream_id, double left, double right) Notify the current volume for the audio stream. 2. Added methods to RenderView for creating audio streams and delegate audio related requests to browser process with IPC. Now the registration and bookkeeping of AudioRendererImpl happens in RenderView (see audio_renderers_). The reason being that the code is almost just an base::IDMap that doesn't worth creating a new class.

Patch Set 1 #

Patch Set 2 : merge #

Patch Set 3 : handlers and hook #

Patch Set 4 : message updates #

Patch Set 5 : state update #

Total comments: 5

Patch Set 6 : cpu's comments #

Patch Set 7 : deps #

Patch Set 8 : refactor #

Patch Set 9 : cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -0 lines) Patch
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/renderer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/media/audio_renderer_impl.h View 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/media/audio_renderer_impl.cc View 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 6 7 6 chunks +35 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 7 3 chunks +97 lines, -0 lines 0 comments Download
M media/audio/audio_output.h View 8 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Alpha Left Google
11 years, 10 months ago (2009-02-16 20:26:27 UTC) #1
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/20410/diff/1011/31 File chrome/renderer/media/audio_renderer_impl.h (right): http://codereview.chromium.org/20410/diff/1011/31#newcode9 Line 9: #include "chrome/common/render_messages.h" I think we are not supposed ...
11 years, 10 months ago (2009-02-18 20:37:01 UTC) #2
Alpha Left Google
http://codereview.chromium.org/20410/diff/1011/31 File chrome/renderer/media/audio_renderer_impl.h (right): http://codereview.chromium.org/20410/diff/1011/31#newcode9 Line 9: #include "chrome/common/render_messages.h" On 2009/02/18 20:37:02, cpu wrote: > ...
11 years, 10 months ago (2009-02-18 21:50:31 UTC) #3
cpu_(ooo_6.6-7.5)
11 years, 10 months ago (2009-02-18 23:35:06 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698