| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 size_t shared_memory_size_, | 69 size_t shared_memory_size_, |
| 70 base::SyncSocket::Handle socket); | 70 base::SyncSocket::Handle socket); |
| 71 | 71 |
| 72 // AudioConfig used for creating this Audio object. We own a ref. | 72 // AudioConfig used for creating this Audio object. We own a ref. |
| 73 ::ppapi::ScopedPPResource config_; | 73 ::ppapi::ScopedPPResource config_; |
| 74 | 74 |
| 75 // PluginDelegate audio object that we delegate audio IPC through. We don't | 75 // PluginDelegate audio object that we delegate audio IPC through. We don't |
| 76 // own this pointer but are responsible for calling Shutdown on it. | 76 // own this pointer but are responsible for calling Shutdown on it. |
| 77 PluginDelegate::PlatformAudioOutput* audio_; | 77 PluginDelegate::PlatformAudioOutput* audio_; |
| 78 | 78 |
| 79 // Track frame count for passing on to PPB_Audio_Shared::SetStreamInfo(). |
| 80 int sample_frame_count_; |
| 81 |
| 79 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Impl); | 82 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Impl); |
| 80 }; | 83 }; |
| 81 | 84 |
| 82 } // namespace ppapi | 85 } // namespace ppapi |
| 83 } // namespace webkit | 86 } // namespace webkit |
| 84 | 87 |
| 85 #endif // WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_ | 88 #endif // WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_ |
| OLD | NEW |