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_PLATFORM_AUDIO_INPUT_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void StopCapture(); | 53 void StopCapture(); |
54 // Closes the stream. Make sure to call this before the object is destructed. | 54 // Closes the stream. Make sure to call this before the object is destructed. |
55 void ShutDown(); | 55 void ShutDown(); |
56 | 56 |
57 // media::AudioInputIPCDelegate. | 57 // media::AudioInputIPCDelegate. |
58 void OnStreamCreated(base::SharedMemoryHandle handle, | 58 void OnStreamCreated(base::SharedMemoryHandle handle, |
59 base::SyncSocket::Handle socket_handle, | 59 base::SyncSocket::Handle socket_handle, |
60 int length, | 60 int length, |
61 int total_segments) override; | 61 int total_segments) override; |
62 void OnError() override; | 62 void OnError() override; |
| 63 void OnMuted(bool is_muted) override; |
63 void OnIPCClosed() override; | 64 void OnIPCClosed() override; |
64 | 65 |
65 protected: | 66 protected: |
66 ~PepperPlatformAudioInput() override; | 67 ~PepperPlatformAudioInput() override; |
67 | 68 |
68 private: | 69 private: |
69 friend class base::RefCountedThreadSafe<PepperPlatformAudioInput>; | 70 friend class base::RefCountedThreadSafe<PepperPlatformAudioInput>; |
70 | 71 |
71 PepperPlatformAudioInput(); | 72 PepperPlatformAudioInput(); |
72 | 73 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 bool pending_open_device_; | 122 bool pending_open_device_; |
122 // THIS MUST ONLY BE ACCESSED ON THE MAIN THREAD. | 123 // THIS MUST ONLY BE ACCESSED ON THE MAIN THREAD. |
123 int pending_open_device_id_; | 124 int pending_open_device_id_; |
124 | 125 |
125 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInput); | 126 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInput); |
126 }; | 127 }; |
127 | 128 |
128 } // namespace content | 129 } // namespace content |
129 | 130 |
130 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_ | 131 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_ |
OLD | NEW |