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