| 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 CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // PPB_Audio_API implementation. | 43 // PPB_Audio_API implementation. |
| 44 PP_Resource GetCurrentConfig() override; | 44 PP_Resource GetCurrentConfig() override; |
| 45 PP_Bool StartPlayback() override; | 45 PP_Bool StartPlayback() override; |
| 46 PP_Bool StopPlayback() override; | 46 PP_Bool StopPlayback() override; |
| 47 int32_t Open(PP_Resource config_id, | 47 int32_t Open(PP_Resource config_id, |
| 48 scoped_refptr<ppapi::TrackedCallback> create_callback) override; | 48 scoped_refptr<ppapi::TrackedCallback> create_callback) override; |
| 49 int32_t GetSyncSocket(int* sync_socket) override; | 49 int32_t GetSyncSocket(int* sync_socket) override; |
| 50 int32_t GetSharedMemory(base::SharedMemory** shm, | 50 int32_t GetSharedMemory(base::SharedMemory** shm, |
| 51 uint32_t* shm_size) override; | 51 uint32_t* shm_size) override; |
| 52 | 52 |
| 53 void SetVolume(double volume); |
| 54 |
| 53 private: | 55 private: |
| 54 ~PPB_Audio_Impl() override; | 56 ~PPB_Audio_Impl() override; |
| 55 | 57 |
| 56 // AudioHelper implementation. | 58 // AudioHelper implementation. |
| 57 void OnSetStreamInfo(base::SharedMemoryHandle shared_memory_handle, | 59 void OnSetStreamInfo(base::SharedMemoryHandle shared_memory_handle, |
| 58 size_t shared_memory_size_, | 60 size_t shared_memory_size_, |
| 59 base::SyncSocket::Handle socket) override; | 61 base::SyncSocket::Handle socket) override; |
| 60 | 62 |
| 61 // PluginInstanceThrottler::Observer implementation. | 63 // PluginInstanceThrottler::Observer implementation. |
| 62 void OnThrottleStateChange() override; | 64 void OnThrottleStateChange() override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 73 | 75 |
| 74 // Stream is playing, but throttled due to Plugin Power Saver. | 76 // Stream is playing, but throttled due to Plugin Power Saver. |
| 75 bool playback_throttled_; | 77 bool playback_throttled_; |
| 76 | 78 |
| 77 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Impl); | 79 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Impl); |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace content | 82 } // namespace content |
| 81 | 83 |
| 82 #endif // CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_ | 84 #endif // CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_ |
| OLD | NEW |