| 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 PPAPI_PROXY_PPB_AUDIO_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_AUDIO_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_AUDIO_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_AUDIO_PROXY_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
| 12 #include "base/sync_socket.h" | 12 #include "base/sync_socket.h" |
| 13 #include "ipc/ipc_platform_file.h" | 13 #include "ipc/ipc_platform_file.h" |
| 14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/c/ppb_audio.h" | 16 #include "ppapi/c/ppb_audio.h" |
| 17 #include "ppapi/c/ppb_audio_config.h" | 17 #include "ppapi/c/ppb_audio_config.h" |
| 18 #include "ppapi/proxy/interface_proxy.h" | 18 #include "ppapi/proxy/interface_proxy.h" |
| 19 #include "ppapi/proxy/proxy_completion_callback_factory.h" | 19 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
| 20 #include "ppapi/proxy/serialized_structs.h" | |
| 21 #include "ppapi/utility/completion_callback_factory.h" | 20 #include "ppapi/utility/completion_callback_factory.h" |
| 22 | 21 |
| 23 namespace ppapi { | 22 namespace ppapi { |
| 24 | 23 |
| 25 class HostResource; | 24 class HostResource; |
| 26 | 25 |
| 27 namespace proxy { | 26 namespace proxy { |
| 28 | 27 |
| 28 class SerializedHandle; |
| 29 |
| 29 class PPB_Audio_Proxy : public InterfaceProxy { | 30 class PPB_Audio_Proxy : public InterfaceProxy { |
| 30 public: | 31 public: |
| 31 PPB_Audio_Proxy(Dispatcher* dispatcher); | 32 PPB_Audio_Proxy(Dispatcher* dispatcher); |
| 32 virtual ~PPB_Audio_Proxy(); | 33 virtual ~PPB_Audio_Proxy(); |
| 33 | 34 |
| 34 // Creates an Audio object in the plugin process. | 35 // Creates an Audio object in the plugin process. |
| 35 static PP_Resource CreateProxyResource(PP_Instance instance_id, | 36 static PP_Resource CreateProxyResource(PP_Instance instance_id, |
| 36 PP_Resource config_id, | 37 PP_Resource config_id, |
| 37 PPB_Audio_Callback audio_callback, | 38 PPB_Audio_Callback audio_callback, |
| 38 void* user_data); | 39 void* user_data); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 78 |
| 78 ProxyCompletionCallbackFactory<PPB_Audio_Proxy> callback_factory_; | 79 ProxyCompletionCallbackFactory<PPB_Audio_Proxy> callback_factory_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Proxy); | 81 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Proxy); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace proxy | 84 } // namespace proxy |
| 84 } // namespace ppapi | 85 } // namespace ppapi |
| 85 | 86 |
| 86 #endif // PPAPI_PROXY_PPB_AUDIO_PROXY_H_ | 87 #endif // PPAPI_PROXY_PPB_AUDIO_PROXY_H_ |
| OLD | NEW |