| OLD | NEW |
| 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 | 5 |
| 6 /* From trusted/ppb_audio_input_trusted_dev.idl modified Mon Nov 21 12:37:35 201
1. */ | 6 /* From trusted/ppb_audio_input_trusted_dev.idl modified Mon Nov 21 16:51:03 201
1. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_TRUSTED_PPB_AUDIO_INPUT_TRUSTED_DEV_H_ | 8 #ifndef PPAPI_C_TRUSTED_PPB_AUDIO_INPUT_TRUSTED_DEV_H_ |
| 9 #define PPAPI_C_TRUSTED_PPB_AUDIO_INPUT_TRUSTED_DEV_H_ | 9 #define PPAPI_C_TRUSTED_PPB_AUDIO_INPUT_TRUSTED_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_completion_callback.h" | 11 #include "ppapi/c/pp_completion_callback.h" |
| 12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 | 16 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 /** | 28 /** |
| 29 * @addtogroup Interfaces | 29 * @addtogroup Interfaces |
| 30 * @{ | 30 * @{ |
| 31 */ | 31 */ |
| 32 /** | 32 /** |
| 33 * This interface is to be used by proxy implementations. All functions should | 33 * This interface is to be used by proxy implementations. All functions should |
| 34 * be called from the main thread only. The resource returned is an Audio input | 34 * be called from the main thread only. The resource returned is an Audio input |
| 35 * resource; most of the PPB_AudioInput interface is also usable on this | 35 * resource; most of the PPB_AudioInput interface is also usable on this |
| 36 * resource. | 36 * resource. |
| 37 */ | 37 */ |
| 38 struct PPB_AudioInputTrusted_Dev { | 38 struct PPB_AudioInputTrusted_Dev_0_1 { |
| 39 /** Returns an audio input resource. */ | 39 /** Returns an audio input resource. */ |
| 40 PP_Resource (*CreateTrusted)(PP_Instance instance); | 40 PP_Resource (*CreateTrusted)(PP_Instance instance); |
| 41 /** | 41 /** |
| 42 * Opens a paused audio input interface, used by trusted side of proxy. | 42 * Opens a paused audio input interface, used by trusted side of proxy. |
| 43 * Returns PP_ERROR_WOULD_BLOCK on success, and invokes the |create_callback| | 43 * Returns PP_ERROR_WOULD_BLOCK on success, and invokes the |create_callback| |
| 44 * asynchronously to complete. As this function should always be invoked from | 44 * asynchronously to complete. As this function should always be invoked from |
| 45 * the main thread, do not use the blocking variant of PP_CompletionCallback. | 45 * the main thread, do not use the blocking variant of PP_CompletionCallback. |
| 46 */ | 46 */ |
| 47 int32_t (*Open)(PP_Resource audio_input, | 47 int32_t (*Open)(PP_Resource audio_input, |
| 48 PP_Resource config, | 48 PP_Resource config, |
| 49 struct PP_CompletionCallback create_callback); | 49 struct PP_CompletionCallback create_callback); |
| 50 /** | 50 /** |
| 51 * Get the sync socket. Use once Open has completed. | 51 * Get the sync socket. Use once Open has completed. |
| 52 * Returns PP_OK on success. | 52 * Returns PP_OK on success. |
| 53 */ | 53 */ |
| 54 int32_t (*GetSyncSocket)(PP_Resource audio_input, int* sync_socket); | 54 int32_t (*GetSyncSocket)(PP_Resource audio_input, int* sync_socket); |
| 55 /** | 55 /** |
| 56 * Get the shared memory interface. Use once Open has completed. | 56 * Get the shared memory interface. Use once Open has completed. |
| 57 * Returns PP_OK on success. | 57 * Returns PP_OK on success. |
| 58 */ | 58 */ |
| 59 int32_t (*GetSharedMemory)(PP_Resource audio_input, | 59 int32_t (*GetSharedMemory)(PP_Resource audio_input, |
| 60 int* shm_handle, | 60 int* shm_handle, |
| 61 uint32_t* shm_size); | 61 uint32_t* shm_size); |
| 62 }; | 62 }; |
| 63 |
| 64 typedef struct PPB_AudioInputTrusted_Dev_0_1 PPB_AudioInputTrusted_Dev; |
| 63 /** | 65 /** |
| 64 * @} | 66 * @} |
| 65 */ | 67 */ |
| 66 | 68 |
| 67 #endif /* PPAPI_C_TRUSTED_PPB_AUDIO_INPUT_TRUSTED_DEV_H_ */ | 69 #endif /* PPAPI_C_TRUSTED_PPB_AUDIO_INPUT_TRUSTED_DEV_H_ */ |
| 68 | 70 |
| OLD | NEW |