| 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_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 // Closes the stream. Make sure to call this before the object is | 45 // Closes the stream. Make sure to call this before the object is |
| 46 // destructed. | 46 // destructed. |
| 47 void ShutDown(); | 47 void ShutDown(); |
| 48 | 48 |
| 49 // media::AudioOutputIPCDelegate implementation. | 49 // media::AudioOutputIPCDelegate implementation. |
| 50 void OnStateChanged(media::AudioOutputIPCDelegate::State state) override; | 50 void OnStateChanged(media::AudioOutputIPCDelegate::State state) override; |
| 51 void OnStreamCreated(base::SharedMemoryHandle handle, | 51 void OnStreamCreated(base::SharedMemoryHandle handle, |
| 52 base::SyncSocket::Handle socket_handle, | 52 base::SyncSocket::Handle socket_handle, |
| 53 int length) override; | 53 int length) override; |
| 54 void OnDeviceSwitched( |
| 55 int request_id, |
| 56 media::AudioOutputIPCDelegate::DeviceSwitchResult result) override; |
| 54 void OnIPCClosed() override; | 57 void OnIPCClosed() override; |
| 55 | 58 |
| 56 protected: | 59 protected: |
| 57 ~PepperPlatformAudioOutput() override; | 60 ~PepperPlatformAudioOutput() override; |
| 58 | 61 |
| 59 private: | 62 private: |
| 60 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; | 63 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; |
| 61 | 64 |
| 62 PepperPlatformAudioOutput(); | 65 PepperPlatformAudioOutput(); |
| 63 | 66 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 82 | 85 |
| 83 scoped_refptr<base::MessageLoopProxy> main_message_loop_proxy_; | 86 scoped_refptr<base::MessageLoopProxy> main_message_loop_proxy_; |
| 84 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 87 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
| 85 | 88 |
| 86 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); | 89 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); |
| 87 }; | 90 }; |
| 88 | 91 |
| 89 } // namespace content | 92 } // namespace content |
| 90 | 93 |
| 91 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ | 94 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ |
| OLD | NEW |