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 CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 base::SyncSocket::Handle socket_handle); | 54 base::SyncSocket::Handle socket_handle); |
55 | 55 |
56 int32_t GetRemoteHandles( | 56 int32_t GetRemoteHandles( |
57 const base::SyncSocket& socket, | 57 const base::SyncSocket& socket, |
58 const base::SharedMemory& shared_memory, | 58 const base::SharedMemory& shared_memory, |
59 IPC::PlatformFileForTransit* remote_socket_handle, | 59 IPC::PlatformFileForTransit* remote_socket_handle, |
60 base::SharedMemoryHandle* remote_shared_memory_handle); | 60 base::SharedMemoryHandle* remote_shared_memory_handle); |
61 | 61 |
62 void Close(); | 62 void Close(); |
63 | 63 |
| 64 void SendOpenReply(int32_t result); |
| 65 |
64 // Non-owning pointer. | 66 // Non-owning pointer. |
65 RendererPpapiHostImpl* renderer_ppapi_host_; | 67 RendererPpapiHostImpl* renderer_ppapi_host_; |
66 | 68 |
67 scoped_ptr<ppapi::host::ReplyMessageContext> open_context_; | 69 ppapi::host::ReplyMessageContext open_context_; |
68 | 70 |
69 // Audio input object that we delegate audio IPC through. | 71 // Audio input object that we delegate audio IPC through. |
70 // We don't own this pointer but are responsible for calling Shutdown on it. | 72 // We don't own this pointer but are responsible for calling Shutdown on it. |
71 PepperPlatformAudioInput* audio_input_; | 73 PepperPlatformAudioInput* audio_input_; |
72 | 74 |
73 PepperDeviceEnumerationHostHelper enumeration_helper_; | 75 PepperDeviceEnumerationHostHelper enumeration_helper_; |
74 | 76 |
75 DISALLOW_COPY_AND_ASSIGN(PepperAudioInputHost); | 77 DISALLOW_COPY_AND_ASSIGN(PepperAudioInputHost); |
76 }; | 78 }; |
77 | 79 |
78 } // namespace content | 80 } // namespace content |
79 | 81 |
80 #endif // CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ | 82 #endif // CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ |
OLD | NEW |