| Index: webkit/plugins/ppapi/plugin_delegate.h
|
| diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
|
| index be8cd1635115d4ca2eec7df6c7f36d91c31df58e..91ee5255427c11c2d08c1441df9ae83d10fd159a 100644
|
| --- a/webkit/plugins/ppapi/plugin_delegate.h
|
| +++ b/webkit/plugins/ppapi/plugin_delegate.h
|
| @@ -227,6 +227,14 @@ class PluginDelegate {
|
| virtual ~PlatformAudioOutput() {}
|
| };
|
|
|
| + class PlatformAudioInputClient : public PlatformAudioCommonClient {
|
| + public:
|
| + virtual void StreamCreationFailed() = 0;
|
| +
|
| + protected:
|
| + virtual ~PlatformAudioInputClient() {}
|
| + };
|
| +
|
| class PlatformAudioInput {
|
| public:
|
| // Starts the capture. Returns false on error or if called before the
|
| @@ -348,12 +356,14 @@ class PluginDelegate {
|
| uint32_t sample_count,
|
| PlatformAudioCommonClient* client) = 0;
|
|
|
| + // If |device_id| is empty, the default audio input device will be used.
|
| // The caller is responsible for calling Shutdown() on the returned pointer
|
| // to clean up the corresponding resources allocated during this call.
|
| virtual PlatformAudioInput* CreateAudioInput(
|
| + const std::string& device_id,
|
| uint32_t sample_rate,
|
| uint32_t sample_count,
|
| - PlatformAudioCommonClient* client) = 0;
|
| + PlatformAudioInputClient* client) = 0;
|
|
|
| // A pointer is returned immediately, but it is not ready to be used until
|
| // BrokerConnected has been called.
|
|
|