diff options
Diffstat (limited to 'ppapi/shared_impl/audio_impl.h')
-rw-r--r-- | ppapi/shared_impl/audio_impl.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ppapi/shared_impl/audio_impl.h b/ppapi/shared_impl/audio_impl.h index cec4a07..ba7c780 100644 --- a/ppapi/shared_impl/audio_impl.h +++ b/ppapi/shared_impl/audio_impl.h @@ -10,18 +10,24 @@ #include "base/sync_socket.h" #include "base/threading/simple_thread.h" #include "ppapi/c/ppb_audio.h" +#include "ppapi/shared_impl/resource_object_base.h" +#include "ppapi/thunk/ppb_audio_api.h" -namespace pp { -namespace shared_impl { +namespace ppapi { // Implements the logic to map shared memory and run the audio thread signaled // from the sync socket. Both the proxy and the renderer implementation use // this code. -class AudioImpl : public base::DelegateSimpleThread::Delegate { +class AudioImpl : public ResourceObjectBase, + public thunk::PPB_Audio_API, + public base::DelegateSimpleThread::Delegate { public: AudioImpl(); virtual ~AudioImpl(); + // ResourceObjectBase implementation. + virtual ::ppapi::thunk::PPB_Audio_API* AsAudio_API() OVERRIDE; + bool playing() const { return playing_; } // Sets the callback information that the background thread will use. This @@ -79,7 +85,6 @@ class AudioImpl : public base::DelegateSimpleThread::Delegate { void* user_data_; }; -} // namespace shared_impl -} // namespace pp +} // namespace ppapi #endif // PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ |