Index: content/renderer/pepper/pepper_platform_audio_input_impl.h |
diff --git a/content/renderer/pepper/pepper_platform_audio_input_impl.h b/content/renderer/pepper/pepper_platform_audio_input_impl.h |
index 4117fe499e5bf319b74db39aebedab2a82220042..6b6c3b41c86444d9e34cb547b43d654e4c50dbe3 100644 |
--- a/content/renderer/pepper/pepper_platform_audio_input_impl.h |
+++ b/content/renderer/pepper/pepper_platform_audio_input_impl.h |
@@ -36,8 +36,6 @@ class PepperPlatformAudioInputImpl |
public AudioInputMessageFilter::Delegate, |
public base::RefCountedThreadSafe<PepperPlatformAudioInputImpl> { |
public: |
- virtual ~PepperPlatformAudioInputImpl(); |
- |
// Factory function, returns NULL on failure. StreamCreated() will be called |
// when the stream is created. |
static PepperPlatformAudioInputImpl* Create( |
@@ -52,7 +50,20 @@ class PepperPlatformAudioInputImpl |
virtual void StopCapture() OVERRIDE; |
virtual void ShutDown() OVERRIDE; |
+ // AudioInputMessageFilter::Delegate. |
+ virtual void OnStreamCreated(base::SharedMemoryHandle handle, |
+ base::SyncSocket::Handle socket_handle, |
+ uint32 length) OVERRIDE; |
+ virtual void OnVolume(double volume) OVERRIDE; |
+ virtual void OnStateChanged(AudioStreamState state) OVERRIDE; |
+ virtual void OnDeviceReady(const std::string&) OVERRIDE; |
+ |
+ protected: |
+ virtual ~PepperPlatformAudioInputImpl(); |
+ |
private: |
+ friend class base::RefCountedThreadSafe<PepperPlatformAudioInputImpl>; |
+ |
PepperPlatformAudioInputImpl(); |
bool Initialize( |
@@ -68,14 +79,6 @@ class PepperPlatformAudioInputImpl |
void StopCaptureOnIOThread(); |
void ShutDownOnIOThread(); |
- // AudioInputMessageFilter::Delegate. |
- virtual void OnStreamCreated(base::SharedMemoryHandle handle, |
- base::SyncSocket::Handle socket_handle, |
- uint32 length) OVERRIDE; |
- virtual void OnVolume(double volume) OVERRIDE; |
- virtual void OnStateChanged(AudioStreamState state) OVERRIDE; |
- virtual void OnDeviceReady(const std::string&) OVERRIDE; |
- |
void OnDeviceOpened(int request_id, |
bool succeeded, |
const std::string& label); |