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 26 matching lines...) Expand all Loading... |
37 void StreamCreated(base::SharedMemoryHandle shared_memory_handle, | 37 void StreamCreated(base::SharedMemoryHandle shared_memory_handle, |
38 size_t shared_memory_size, | 38 size_t shared_memory_size, |
39 base::SyncSocket::Handle socket); | 39 base::SyncSocket::Handle socket); |
40 void StreamCreationFailed(); | 40 void StreamCreationFailed(); |
41 | 41 |
42 private: | 42 private: |
43 int32_t OnOpen(ppapi::host::HostMessageContext* context, | 43 int32_t OnOpen(ppapi::host::HostMessageContext* context, |
44 const std::string& device_id, | 44 const std::string& device_id, |
45 PP_AudioSampleRate sample_rate, | 45 PP_AudioSampleRate sample_rate, |
46 uint32_t sample_frame_count); | 46 uint32_t sample_frame_count); |
47 int32_t OnStartOrStop(ppapi::host::HostMessageContext* context, | 47 int32_t OnStartOrStop(ppapi::host::HostMessageContext* context, bool capture); |
48 bool capture); | |
49 int32_t OnClose(ppapi::host::HostMessageContext* context); | 48 int32_t OnClose(ppapi::host::HostMessageContext* context); |
50 | 49 |
51 void OnOpenComplete(int32_t result, | 50 void OnOpenComplete(int32_t result, |
52 base::SharedMemoryHandle shared_memory_handle, | 51 base::SharedMemoryHandle shared_memory_handle, |
53 size_t shared_memory_size, | 52 size_t shared_memory_size, |
54 base::SyncSocket::Handle socket_handle); | 53 base::SyncSocket::Handle socket_handle); |
55 | 54 |
56 int32_t GetRemoteHandles( | 55 int32_t GetRemoteHandles( |
57 const base::SyncSocket& socket, | 56 const base::SyncSocket& socket, |
58 const base::SharedMemory& shared_memory, | 57 const base::SharedMemory& shared_memory, |
(...skipping 12 matching lines...) Expand all Loading... |
71 PepperPlatformAudioInput* audio_input_; | 70 PepperPlatformAudioInput* audio_input_; |
72 | 71 |
73 PepperDeviceEnumerationHostHelper enumeration_helper_; | 72 PepperDeviceEnumerationHostHelper enumeration_helper_; |
74 | 73 |
75 DISALLOW_COPY_AND_ASSIGN(PepperAudioInputHost); | 74 DISALLOW_COPY_AND_ASSIGN(PepperAudioInputHost); |
76 }; | 75 }; |
77 | 76 |
78 } // namespace content | 77 } // namespace content |
79 | 78 |
80 #endif // CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ | 79 #endif // CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ |
OLD | NEW |