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

Side by Side Diff: ppapi/api/trusted/ppb_audio_input_trusted_dev.idl

Issue 8489002: Pepper: Fix nits mentioned in review in audio input code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 /** 5 /**
6 * This file defines the trusted audio input interface. 6 * This file defines the trusted audio input interface.
7 */ 7 */
8 8
9 label Chrome { 9 label Chrome {
10 M17 = 0.1 10 M17 = 0.1
11 }; 11 };
12 12
13 /** 13 /**
14 * This interface is to be used by proxy implementations. All 14 * This interface is to be used by proxy implementations. All functions should
15 * functions should be called from the main thread only. The 15 * be called from the main thread only. The resource returned is an Audio input
16 * resource returned is an Audio input esource; most of the PPB_Audio 16 * resource; most of the PPB_AudioInput interface is also usable on this
17 * interface is also usable on this resource. 17 * resource.
18 */ 18 */
19 [version=0.1, macro="PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE"] 19 [version=0.1, macro="PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE"]
20 interface PPB_AudioInputTrusted_Dev { 20 interface PPB_AudioInputTrusted_Dev {
21 /** Returns an audio input resource. */ 21 /** Returns an audio input resource. */
22 PP_Resource CreateTrusted( 22 PP_Resource CreateTrusted(
23 [in] PP_Instance instance); 23 [in] PP_Instance instance);
24 24
25 /** 25 /**
26 * Opens a paused audio interface, used by trusted side of proxy. 26 * Opens a paused audio input interface, used by trusted side of proxy.
27 * Returns PP_ERROR_WOULD_BLOCK on success, and invokes 27 * Returns PP_ERROR_WOULD_BLOCK on success, and invokes the |create_callback|
28 * the |create_callback| asynchronously to complete. 28 * asynchronously to complete. As this function should always be invoked from
29 * As this function should always be invoked from the main thread, 29 * the main thread, do not use the blocking variant of PP_CompletionCallback.
30 * do not use the blocking variant of PP_CompletionCallback.
31 */ 30 */
32 int32_t Open( 31 int32_t Open(
33 [in] PP_Resource audio_input, 32 [in] PP_Resource audio_input,
34 [in] PP_Resource config, 33 [in] PP_Resource config,
35 [in] PP_CompletionCallback create_callback); 34 [in] PP_CompletionCallback create_callback);
36 35
37 /** 36 /**
38 * Get the sync socket. Use once Open has completed. 37 * Get the sync socket. Use once Open has completed.
39 * Returns PP_OK on success. 38 * Returns PP_OK on success.
40 */ 39 */
41 int32_t GetSyncSocket( 40 int32_t GetSyncSocket(
42 [in] PP_Resource audio_input, 41 [in] PP_Resource audio_input,
43 [out] handle_t sync_socket); 42 [out] handle_t sync_socket);
44 43
45 /** 44 /**
46 * Get the shared memory interface. Use once Open has completed. 45 * Get the shared memory interface. Use once Open has completed.
47 * Returns PP_OK on success. 46 * Returns PP_OK on success.
48 */ 47 */
49 int32_t GetSharedMemory( 48 int32_t GetSharedMemory(
50 [in] PP_Resource audio_input, 49 [in] PP_Resource audio_input,
51 [out] handle_t shm_handle, 50 [out] handle_t shm_handle,
52 [out] uint32_t shm_size); 51 [out] uint32_t shm_size);
53 }; 52 };
OLDNEW
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | ppapi/c/trusted/ppb_audio_input_trusted_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698