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

Side by Side Diff: content/common/media/audio_messages.h

Issue 12440027: Do not pass the string device_id via IPC message to create an audio input stream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready for review Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for the audio. 5 // IPC messages for the audio.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string>
9
10 #include "base/basictypes.h" 8 #include "base/basictypes.h"
11 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
12 #include "base/sync_socket.h" 10 #include "base/sync_socket.h"
13 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
14 #include "content/common/media/media_param_traits.h" 12 #include "content/common/media/media_param_traits.h"
15 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
16 #include "media/audio/audio_buffers_state.h" 14 #include "media/audio/audio_buffers_state.h"
17 #include "media/audio/audio_input_ipc.h" 15 #include "media/audio/audio_input_ipc.h"
18 #include "media/audio/audio_output_ipc.h" 16 #include "media/audio/audio_output_ipc.h"
19 #include "media/audio/audio_parameters.h" 17 #include "media/audio/audio_parameters.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 76
79 // Notification message sent from browser to renderer for state update. 77 // Notification message sent from browser to renderer for state update.
80 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamStateChanged, 78 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamStateChanged,
81 int /* stream id */, 79 int /* stream id */,
82 media::AudioInputIPCDelegate::State /* new state */) 80 media::AudioInputIPCDelegate::State /* new state */)
83 81
84 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamVolume, 82 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamVolume,
85 int /* stream id */, 83 int /* stream id */,
86 double /* volume */) 84 double /* volume */)
87 85
88 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted,
89 int /* stream id */,
90 std::string /* device_id */)
91
92 // Messages sent from the renderer to the browser. 86 // Messages sent from the renderer to the browser.
93 87
94 // Request that got sent to browser for creating an audio output stream 88 // Request that got sent to browser for creating an audio output stream
95 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream, 89 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream,
96 int /* stream_id */, 90 int /* stream_id */,
97 media::AudioParameters /* params */) 91 media::AudioParameters /* params */)
98 92
99 // Request that got sent to browser for creating an audio input stream 93 // Request that got sent to browser for creating an audio input stream
100 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, 94 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream,
101 int /* stream_id */, 95 int /* stream_id */,
96 int /* session_id */,
102 media::AudioParameters /* params */, 97 media::AudioParameters /* params */,
103 std::string /* device_id */,
104 bool /* automatic_gain_control */) 98 bool /* automatic_gain_control */)
105 99
106 // Indicate that audio for a stream is produced by the specified render view. 100 // Indicate that audio for a stream is produced by the specified render view.
107 IPC_MESSAGE_CONTROL2(AudioHostMsg_AssociateStreamWithProducer, 101 IPC_MESSAGE_CONTROL2(AudioHostMsg_AssociateStreamWithProducer,
108 int /* stream_id */, 102 int /* stream_id */,
109 int /* render_view_id */) 103 int /* render_view_id */)
110 104
111 // Indicate that audio for a stream is consumed by the specified render view. 105 // Indicate that audio for a stream is consumed by the specified render view.
112 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_AssociateStreamWithConsumer, 106 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_AssociateStreamWithConsumer,
113 int /* stream_id */, 107 int /* stream_id */,
(...skipping 26 matching lines...) Expand all
140 // Set audio volume of the stream specified by stream_id. 134 // Set audio volume of the stream specified by stream_id.
141 // TODO(hclam): change this to vector if we have channel numbers other than 2. 135 // TODO(hclam): change this to vector if we have channel numbers other than 2.
142 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, 136 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume,
143 int /* stream_id */, 137 int /* stream_id */,
144 double /* volume */) 138 double /* volume */)
145 139
146 // Set audio volume of the input stream specified by stream_id. 140 // Set audio volume of the input stream specified by stream_id.
147 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, 141 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume,
148 int /* stream_id */, 142 int /* stream_id */,
149 double /* volume */) 143 double /* volume */)
150
151 // Start the device referenced by the session_id for the input stream specified
152 // by stream_id.
153 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice,
154 int /* stream_id */,
155 int /* session_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698