Revert 168224 - Update V8 to version 3.15.4.
[chromium-blink-merge.git] / ppapi / thunk / ppb_audio_input_api.h
blobe820c08dcb496963044cd5da0957af1d20283170
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_
8 #include <string>
10 #include "base/memory/ref_counted.h"
11 #include "ppapi/c/dev/ppb_audio_input_dev.h"
13 namespace ppapi {
15 class TrackedCallback;
17 namespace thunk {
19 class PPB_AudioInput_API {
20 public:
21 virtual ~PPB_AudioInput_API() {}
23 virtual int32_t EnumerateDevices(PP_Resource* devices,
24 scoped_refptr<TrackedCallback> callback) = 0;
25 virtual int32_t Open(const std::string& device_id,
26 PP_Resource config,
27 PPB_AudioInput_Callback audio_input_callback,
28 void* user_data,
29 scoped_refptr<TrackedCallback> callback) = 0;
30 virtual PP_Resource GetCurrentConfig() = 0;
31 virtual PP_Bool StartCapture() = 0;
32 virtual PP_Bool StopCapture() = 0;
33 virtual void Close() = 0;
36 } // namespace thunk
37 } // namespace ppapi
39 #endif // PPAPI_THUNK_AUDIO_INPUT_API_H_