| 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_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ |
| 7 | 7 |
| 8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 PP_Resource GetCurrentConfiguration() { | 64 PP_Resource GetCurrentConfiguration() { |
| 65 return config_->GetReference(); | 65 return config_->GetReference(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 PP_Instance pp_instance() { | 68 PP_Instance pp_instance() { |
| 69 return pp_instance_; | 69 return pp_instance_; |
| 70 } | 70 } |
| 71 | 71 |
| 72 int32_t GetSyncSocket(int* sync_socket); | 72 int32_t GetSyncSocket(int* sync_socket); |
| 73 | 73 |
| 74 int32_t GetSharedMemory(int* shm_handle, int32_t* shm_size); | 74 int32_t GetSharedMemory(int* shm_handle, uint32_t* shm_size); |
| 75 | 75 |
| 76 bool StartPlayback(); | 76 bool StartPlayback(); |
| 77 | 77 |
| 78 bool StopPlayback(); | 78 bool StopPlayback(); |
| 79 | 79 |
| 80 // Resource override. | 80 // Resource override. |
| 81 virtual Audio* AsAudio(); | 81 virtual Audio* AsAudio(); |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 // pepper::PluginDelegate::PlatformAudio::Client implementation. | 84 // pepper::PluginDelegate::PlatformAudio::Client implementation. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Is a create callback pending to fire? | 127 // Is a create callback pending to fire? |
| 128 bool create_callback_pending_; | 128 bool create_callback_pending_; |
| 129 | 129 |
| 130 // Trusted callback invoked from StreamCreated. | 130 // Trusted callback invoked from StreamCreated. |
| 131 PP_CompletionCallback create_callback_; | 131 PP_CompletionCallback create_callback_; |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace pepper | 134 } // namespace pepper |
| 135 | 135 |
| 136 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ | 136 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_DEVICE_CONTEXT_AUDIO_H_ |
| OLD | NEW |