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_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client); | 47 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client); |
48 | 48 |
49 // PlatformAudioInput implementation (called on main thread). | 49 // PlatformAudioInput implementation (called on main thread). |
50 virtual void StartCapture() OVERRIDE; | 50 virtual void StartCapture() OVERRIDE; |
51 virtual void StopCapture() OVERRIDE; | 51 virtual void StopCapture() OVERRIDE; |
52 virtual void ShutDown() OVERRIDE; | 52 virtual void ShutDown() OVERRIDE; |
53 | 53 |
54 // media::AudioInputIPCDelegate. | 54 // media::AudioInputIPCDelegate. |
55 virtual void OnStreamCreated(base::SharedMemoryHandle handle, | 55 virtual void OnStreamCreated(base::SharedMemoryHandle handle, |
56 base::SyncSocket::Handle socket_handle, | 56 base::SyncSocket::Handle socket_handle, |
57 int length) OVERRIDE; | 57 int length, |
| 58 int total_segments) OVERRIDE; |
58 virtual void OnVolume(double volume) OVERRIDE; | 59 virtual void OnVolume(double volume) OVERRIDE; |
59 virtual void OnStateChanged( | 60 virtual void OnStateChanged( |
60 media::AudioInputIPCDelegate::State state) OVERRIDE; | 61 media::AudioInputIPCDelegate::State state) OVERRIDE; |
61 virtual void OnDeviceReady(const std::string&) OVERRIDE; | 62 virtual void OnDeviceReady(const std::string&) OVERRIDE; |
62 virtual void OnIPCClosed() OVERRIDE; | 63 virtual void OnIPCClosed() OVERRIDE; |
63 | 64 |
64 protected: | 65 protected: |
65 virtual ~PepperPlatformAudioInputImpl(); | 66 virtual ~PepperPlatformAudioInputImpl(); |
66 | 67 |
67 private: | 68 private: |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 119 |
119 // Initialized on the main thread and accessed on the I/O thread afterwards. | 120 // Initialized on the main thread and accessed on the I/O thread afterwards. |
120 media::AudioParameters params_; | 121 media::AudioParameters params_; |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl); | 123 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl); |
123 }; | 124 }; |
124 | 125 |
125 } // namespace content | 126 } // namespace content |
126 | 127 |
127 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ | 128 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ |
OLD | NEW |