| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ | 5 #ifndef PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ |
| 6 #define PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ | 6 #define PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "base/sync_socket.h" | 10 #include "base/sync_socket.h" |
| 11 #include "base/threading/simple_thread.h" | 11 #include "base/threading/simple_thread.h" |
| 12 #include "ppapi/c/dev/ppb_audio_dev.h" | 12 #include "ppapi/c/ppb_audio.h" |
| 13 | 13 |
| 14 namespace pp { | 14 namespace pp { |
| 15 namespace shared_impl { | 15 namespace shared_impl { |
| 16 | 16 |
| 17 // Implements the logic to map shared memory and run the audio thread signaled | 17 // Implements the logic to map shared memory and run the audio thread signaled |
| 18 // from the sync socket. Both the proxy and the renderer implementation use | 18 // from the sync socket. Both the proxy and the renderer implementation use |
| 19 // this code. | 19 // this code. |
| 20 class AudioImpl : public base::DelegateSimpleThread::Delegate { | 20 class AudioImpl : public base::DelegateSimpleThread::Delegate { |
| 21 public: | 21 public: |
| 22 AudioImpl(); | 22 AudioImpl(); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 PPB_Audio_Callback callback_; | 76 PPB_Audio_Callback callback_; |
| 77 | 77 |
| 78 // User data pointer passed verbatim to the callback function. | 78 // User data pointer passed verbatim to the callback function. |
| 79 void* user_data_; | 79 void* user_data_; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace shared_impl | 82 } // namespace shared_impl |
| 83 } // namespace pp | 83 } // namespace pp |
| 84 | 84 |
| 85 #endif // PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ | 85 #endif // PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ |
| OLD | NEW |