| 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_OUTPUT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Stops the playback. Returns false on error or if called before the stream | 42 // Stops the playback. Returns false on error or if called before the stream |
| 43 // is created or after the stream is closed. | 43 // is created or after the stream is closed. |
| 44 bool StopPlayback(); | 44 bool StopPlayback(); |
| 45 | 45 |
| 46 // Closes the stream. Make sure to call this before the object is | 46 // Closes the stream. Make sure to call this before the object is |
| 47 // destructed. | 47 // destructed. |
| 48 void ShutDown(); | 48 void ShutDown(); |
| 49 | 49 |
| 50 // media::AudioOutputIPCDelegate implementation. | 50 // media::AudioOutputIPCDelegate implementation. |
| 51 virtual void OnStateChanged( | 51 virtual void OnStateChanged(media::AudioOutputIPCDelegate::State state) |
| 52 media::AudioOutputIPCDelegate::State state) OVERRIDE; | 52 OVERRIDE; |
| 53 virtual void OnStreamCreated(base::SharedMemoryHandle handle, | 53 virtual void OnStreamCreated(base::SharedMemoryHandle handle, |
| 54 base::SyncSocket::Handle socket_handle, | 54 base::SyncSocket::Handle socket_handle, |
| 55 int length) OVERRIDE; | 55 int length) OVERRIDE; |
| 56 virtual void OnIPCClosed() OVERRIDE; | 56 virtual void OnIPCClosed() OVERRIDE; |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 virtual ~PepperPlatformAudioOutput(); | 59 virtual ~PepperPlatformAudioOutput(); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; | 62 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 85 | 85 |
| 86 scoped_refptr<base::MessageLoopProxy> main_message_loop_proxy_; | 86 scoped_refptr<base::MessageLoopProxy> main_message_loop_proxy_; |
| 87 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 87 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); | 89 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace content | 92 } // namespace content |
| 93 | 93 |
| 94 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_IMPL_H_ | 94 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_IMPL_H_ |
| OLD | NEW |