| 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 WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ |
| 7 |
| 5 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 6 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 7 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
| 8 #include "base/simple_thread.h" | 11 #include "base/simple_thread.h" |
| 9 #include "base/sync_socket.h" | 12 #include "base/sync_socket.h" |
| 10 #include "ppapi/c/dev/ppb_audio_dev.h" | 13 #include "ppapi/c/dev/ppb_audio_dev.h" |
| 11 #include "ppapi/c/dev/ppb_audio_config_dev.h" | 14 #include "ppapi/c/dev/ppb_audio_config_dev.h" |
| 12 #include "ppapi/c/dev/ppb_audio_trusted_dev.h" | 15 #include "ppapi/c/dev/ppb_audio_trusted_dev.h" |
| 13 #include "webkit/glue/plugins/pepper_plugin_delegate.h" | 16 #include "webkit/glue/plugins/pepper_plugin_delegate.h" |
| 14 #include "webkit/glue/plugins/pepper_plugin_instance.h" | 17 #include "webkit/glue/plugins/pepper_plugin_instance.h" |
| 15 #include "webkit/glue/plugins/pepper_plugin_module.h" | 18 #include "webkit/glue/plugins/pepper_plugin_module.h" |
| 16 #include "webkit/glue/plugins/pepper_resource.h" | 19 #include "webkit/glue/plugins/pepper_resource.h" |
| 17 | 20 |
| 18 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ | |
| 19 #define WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ | |
| 20 | |
| 21 namespace pepper { | 21 namespace pepper { |
| 22 | 22 |
| 23 class PluginInstance; | 23 class PluginInstance; |
| 24 class PluginModule; | 24 class PluginModule; |
| 25 | 25 |
| 26 class AudioConfig : public Resource { | 26 class AudioConfig : public Resource { |
| 27 public: | 27 public: |
| 28 AudioConfig(PluginModule* module, | 28 AudioConfig(PluginModule* module, |
| 29 PP_AudioSampleRate_Dev sample_rate, | 29 PP_AudioSampleRate_Dev sample_rate, |
| 30 uint32_t sample_frame_count); | 30 uint32_t sample_frame_count); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 volatile PPB_Audio_Callback callback_; | 105 volatile PPB_Audio_Callback callback_; |
| 106 | 106 |
| 107 // User data pointer passed verbatim to the callback function. | 107 // User data pointer passed verbatim to the callback function. |
| 108 void* user_data_; | 108 void* user_data_; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace pepper | 111 } // namespace pepper |
| 112 | 112 |
| 113 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ | 113 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ |
| 114 | 114 |
| OLD | NEW |