| 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_AUDIO_HELPER_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_AUDIO_HELPER_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_AUDIO_HELPER_H_ | 6 #define CONTENT_RENDERER_PEPPER_AUDIO_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| 11 #include "base/sync_socket.h" | 11 #include "base/sync_socket.h" |
| 12 #include "content/renderer/pepper/plugin_delegate.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/shared_impl/resource.h" | 14 #include "ppapi/shared_impl/resource.h" |
| 14 #include "ppapi/shared_impl/scoped_pp_resource.h" | 15 #include "ppapi/shared_impl/scoped_pp_resource.h" |
| 15 #include "ppapi/shared_impl/tracked_callback.h" | 16 #include "ppapi/shared_impl/tracked_callback.h" |
| 16 #include "webkit/plugins/ppapi/plugin_delegate.h" | |
| 17 | 17 |
| 18 namespace webkit { | 18 namespace webkit { |
| 19 namespace ppapi { | 19 namespace ppapi { |
| 20 | 20 |
| 21 class AudioHelper : public PluginDelegate::PlatformAudioOutputClient { | 21 class AudioHelper : public PluginDelegate::PlatformAudioOutputClient { |
| 22 public: | 22 public: |
| 23 AudioHelper(); | 23 AudioHelper(); |
| 24 virtual ~AudioHelper(); | 24 virtual ~AudioHelper(); |
| 25 | 25 |
| 26 // |PluginDelegate::PlatformAudioOutputClient| implementation. | 26 // |PluginDelegate::PlatformAudioOutputClient| implementation. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 53 scoped_ptr<base::SharedMemory> shared_memory_for_create_callback_; | 53 scoped_ptr<base::SharedMemory> shared_memory_for_create_callback_; |
| 54 size_t shared_memory_size_for_create_callback_; | 54 size_t shared_memory_size_for_create_callback_; |
| 55 scoped_ptr<base::SyncSocket> socket_for_create_callback_; | 55 scoped_ptr<base::SyncSocket> socket_for_create_callback_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(AudioHelper); | 57 DISALLOW_COPY_AND_ASSIGN(AudioHelper); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace ppapi | 60 } // namespace ppapi |
| 61 } // namespace webkit | 61 } // namespace webkit |
| 62 | 62 |
| 63 #endif // WEBKIT_PLUGINS_PPAPI_AUDIO_HELPER_H_ | 63 #endif // CONTENT_RENDERER_PEPPER_AUDIO_HELPER_H_ |
| OLD | NEW |