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
3 // found in the LICENSE file.
5 #ifndef PPAPI_THUNK_AUDIO_INPUT_API_H_
6 #define PPAPI_THUNK_AUDIO_INPUT_API_H_
10 #include "base/memory/ref_counted.h"
11 #include "ppapi/c/dev/ppb_audio_input_dev.h"
15 class TrackedCallback
;
19 class PPB_AudioInput_API
{
21 virtual ~PPB_AudioInput_API() {}
23 virtual int32_t EnumerateDevices0_2(
25 scoped_refptr
<TrackedCallback
> callback
) = 0;
26 virtual int32_t EnumerateDevices(const PP_ArrayOutput
& output
,
27 scoped_refptr
<TrackedCallback
> callback
) = 0;
28 virtual int32_t MonitorDeviceChange(PP_MonitorDeviceChangeCallback callback
,
30 virtual int32_t Open0_2(PP_Resource device_ref
,
32 PPB_AudioInput_Callback_0_2 audio_input_callback_0_2
,
34 scoped_refptr
<TrackedCallback
> callback
) = 0;
35 virtual int32_t Open(PP_Resource device_ref
,
37 PPB_AudioInput_Callback audio_input_callback
,
39 scoped_refptr
<TrackedCallback
> callback
) = 0;
40 virtual PP_Resource
GetCurrentConfig() = 0;
41 virtual PP_Bool
StartCapture() = 0;
42 virtual PP_Bool
StopCapture() = 0;
43 virtual void Close() = 0;
49 #endif // PPAPI_THUNK_AUDIO_INPUT_API_H_