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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) OVERRIDE; |
58 virtual void OnVolume(double volume) OVERRIDE; | 58 virtual void OnVolume(double volume) OVERRIDE; |
59 virtual void OnStateChanged( | 59 virtual void OnStateChanged( |
60 media::AudioInputIPCDelegate::State state) OVERRIDE; | 60 media::AudioInputIPCDelegate::State state) OVERRIDE; |
61 virtual void OnDeviceReady(const std::string&) OVERRIDE; | |
62 virtual void OnIPCClosed() OVERRIDE; | 61 virtual void OnIPCClosed() OVERRIDE; |
63 | 62 |
64 protected: | 63 protected: |
65 virtual ~PepperPlatformAudioInputImpl(); | 64 virtual ~PepperPlatformAudioInputImpl(); |
66 | 65 |
67 private: | 66 private: |
68 friend class base::RefCountedThreadSafe<PepperPlatformAudioInputImpl>; | 67 friend class base::RefCountedThreadSafe<PepperPlatformAudioInputImpl>; |
69 | 68 |
70 PepperPlatformAudioInputImpl(); | 69 PepperPlatformAudioInputImpl(); |
71 | 70 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 117 |
119 // Initialized on the main thread and accessed on the I/O thread afterwards. | 118 // Initialized on the main thread and accessed on the I/O thread afterwards. |
120 media::AudioParameters params_; | 119 media::AudioParameters params_; |
121 | 120 |
122 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl); | 121 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl); |
123 }; | 122 }; |
124 | 123 |
125 } // namespace content | 124 } // namespace content |
126 | 125 |
127 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ | 126 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ |
OLD | NEW |