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_INPUT_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_AUDIO_INPUT_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_AUDIO_INPUT_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_AUDIO_INPUT_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
14 #include "base/sync_socket.h" | 14 #include "base/sync_socket.h" |
15 #include "ipc/ipc_platform_file.h" | 15 #include "ipc/ipc_platform_file.h" |
16 #include "ppapi/c/dev/ppb_audio_input_dev.h" | 16 #include "ppapi/c/dev/ppb_audio_input_dev.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_non_thread_safe_ref_count.h" | 19 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
20 #include "ppapi/utility/completion_callback_factory.h" | 20 #include "ppapi/utility/completion_callback_factory.h" |
21 | 21 |
22 namespace ppapi { | 22 namespace ppapi { |
23 | 23 |
24 class HostResource; | 24 class HostResource; |
25 struct DeviceRefData; | 25 struct DeviceRefData; |
26 | 26 |
27 namespace proxy { | 27 namespace proxy { |
28 | 28 |
29 class PPB_AudioInput_Proxy : public InterfaceProxy { | 29 class PPB_AudioInput_Proxy : public InterfaceProxy { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // The input arguments should be initialized to 0 or -1, depending on the | 78 // The input arguments should be initialized to 0 or -1, depending on the |
79 // platform's default invalid handle values. On error, some of these | 79 // platform's default invalid handle values. On error, some of these |
80 // arguments may be written to, and others may be untouched, depending on | 80 // arguments may be written to, and others may be untouched, depending on |
81 // where the error occurred. | 81 // where the error occurred. |
82 int32_t GetAudioInputConnectedHandles( | 82 int32_t GetAudioInputConnectedHandles( |
83 const ppapi::HostResource& resource, | 83 const ppapi::HostResource& resource, |
84 IPC::PlatformFileForTransit* foreign_socket_handle, | 84 IPC::PlatformFileForTransit* foreign_socket_handle, |
85 base::SharedMemoryHandle* foreign_shared_memory_handle, | 85 base::SharedMemoryHandle* foreign_shared_memory_handle, |
86 uint32_t* shared_memory_length); | 86 uint32_t* shared_memory_length); |
87 | 87 |
88 pp::CompletionCallbackFactory<PPB_AudioInput_Proxy, | 88 ProxyCompletionCallbackFactory<PPB_AudioInput_Proxy> callback_factory_; |
89 ProxyNonThreadSafeRefCount> callback_factory_; | |
90 | 89 |
91 DISALLOW_COPY_AND_ASSIGN(PPB_AudioInput_Proxy); | 90 DISALLOW_COPY_AND_ASSIGN(PPB_AudioInput_Proxy); |
92 }; | 91 }; |
93 | 92 |
94 } // namespace proxy | 93 } // namespace proxy |
95 } // namespace ppapi | 94 } // namespace ppapi |
96 | 95 |
97 #endif // PPAPI_PROXY_PPB_AUDIO_INPUT_PROXY_H_ | 96 #endif // PPAPI_PROXY_PPB_AUDIO_INPUT_PROXY_H_ |
OLD | NEW |