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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 8138008: Implementation of ppapi audio. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // PPP_NetworkState_Dev. 186 // PPP_NetworkState_Dev.
187 IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, 187 IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState,
188 bool /* online */) 188 bool /* online */)
189 189
190 // Sent in both directions to see if the other side supports the given 190 // Sent in both directions to see if the other side supports the given
191 // interface. 191 // interface.
192 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, 192 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
193 std::string /* interface_name */, 193 std::string /* interface_name */,
194 bool /* result */) 194 bool /* result */)
195 195
196 IPC_MESSAGE_CONTROL2(PpapiMsg_ExecuteCallback,
viettrungluu 2011/11/16 01:08:34 Eh?
197 uint32 /* serialized_callback */,
198 int32 /* param */)
199
196 // Broker Process. 200 // Broker Process.
197 201
198 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, 202 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin,
199 PP_Instance /* instance */, 203 PP_Instance /* instance */,
200 IPC::PlatformFileForTransit /* handle */, 204 IPC::PlatformFileForTransit /* handle */,
201 int32_t /* result */) 205 int32_t /* result */)
202 206
203 // PPB_Audio. 207 // PPB_Audio.
204 208
205 // Notifies the result of the audio stream create call. This is called in 209 // Notifies the result of the audio stream create call. This is called in
206 // both error cases and in the normal success case. These cases are 210 // both error cases and in the normal success case. These cases are
207 // differentiated by the result code, which is one of the standard PPAPI 211 // differentiated by the result code, which is one of the standard PPAPI
208 // result codes. 212 // result codes.
209 // 213 //
210 // The handler of this message should always close all of the handles passed 214 // The handler of this message should always close all of the handles passed
211 // in, since some could be valid even in the error case. 215 // in, since some could be valid even in the error case.
212 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, 216 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
213 ppapi::HostResource /* audio_id */, 217 ppapi::HostResource /* audio_id */,
214 int32_t /* result_code (will be != PP_OK on failure) */, 218 int32_t /* result_code (will be != PP_OK on failure) */,
215 IPC::PlatformFileForTransit /* socket_handle */, 219 IPC::PlatformFileForTransit /* socket_handle */,
216 base::SharedMemoryHandle /* handle */, 220 base::SharedMemoryHandle /* handle */,
217 int32_t /* length */) 221 int32_t /* length */)
218 222
223 // PPB_AudioInput_Dev.
224 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudioInput_NotifyAudioStreamCreated,
225 ppapi::HostResource /* audio_id */,
226 int32_t /* result_code (will be != PP_OK on failure) */,
227 IPC::PlatformFileForTransit /* socket_handle */,
228 base::SharedMemoryHandle /* handle */,
229 int32_t /* length */)
230
219 // PPB_Broker. 231 // PPB_Broker.
220 IPC_MESSAGE_ROUTED3( 232 IPC_MESSAGE_ROUTED3(
221 PpapiMsg_PPBBroker_ConnectComplete, 233 PpapiMsg_PPBBroker_ConnectComplete,
222 ppapi::HostResource /* broker */, 234 ppapi::HostResource /* broker */,
223 IPC::PlatformFileForTransit /* handle */, 235 IPC::PlatformFileForTransit /* handle */,
224 int32_t /* result */) 236 int32_t /* result */)
225 237
226 // PPB_FileChooser. 238 // PPB_FileChooser.
227 IPC_MESSAGE_ROUTED3( 239 IPC_MESSAGE_ROUTED3(
228 PpapiMsg_PPBFileChooser_ChooseComplete, 240 PpapiMsg_PPBFileChooser_ChooseComplete,
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 // PPB_Audio. 495 // PPB_Audio.
484 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create, 496 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create,
485 PP_Instance /* instance_id */, 497 PP_Instance /* instance_id */,
486 int32_t /* sample_rate */, 498 int32_t /* sample_rate */,
487 uint32_t /* sample_frame_count */, 499 uint32_t /* sample_frame_count */,
488 ppapi::HostResource /* result */) 500 ppapi::HostResource /* result */)
489 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, 501 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
490 ppapi::HostResource /* audio_id */, 502 ppapi::HostResource /* audio_id */,
491 bool /* play */) 503 bool /* play */)
492 504
505 // PPB_AudioInput.
506 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudioInput_Create,
507 PP_Instance /* instance_id */,
508 int32_t /* sample_rate */,
509 uint32_t /* sample_frame_count */,
510 ppapi::HostResource /* result */)
511 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudioInput_StartOrStop,
512 ppapi::HostResource /* audio_id */,
513 bool /* capture */)
514
493 // PPB_Broker. 515 // PPB_Broker.
494 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create, 516 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create,
495 PP_Instance /* instance */, 517 PP_Instance /* instance */,
496 ppapi::HostResource /* result_resource */) 518 ppapi::HostResource /* result_resource */)
497 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect, 519 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect,
498 ppapi::HostResource /* broker */) 520 ppapi::HostResource /* broker */)
499 521
500 // PPB_Buffer. 522 // PPB_Buffer.
501 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, 523 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create,
502 PP_Instance /* instance */, 524 PP_Instance /* instance */,
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) 1129 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1108 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, 1130 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
1109 ppapi::HostResource /* video_decoder */, 1131 ppapi::HostResource /* video_decoder */,
1110 int32_t /* picture buffer id */) 1132 int32_t /* picture buffer id */)
1111 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, 1133 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
1112 ppapi::HostResource /* video_decoder */) 1134 ppapi::HostResource /* video_decoder */)
1113 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, 1135 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
1114 ppapi::HostResource /* video_decoder */) 1136 ppapi::HostResource /* video_decoder */)
1115 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, 1137 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
1116 ppapi::HostResource /* video_decoder */) 1138 ppapi::HostResource /* video_decoder */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698