| 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::AudioOutputIPCDelegateState state) override; | 50 void OnStateChanged(media::AudioOutputIPCDelegateState 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 OnOutputDeviceSwitched(int request_id, |
| 55 media::SwitchOutputDeviceResult result) override; |
| 54 void OnIPCClosed() override; | 56 void OnIPCClosed() override; |
| 55 | 57 |
| 56 protected: | 58 protected: |
| 57 ~PepperPlatformAudioOutput() override; | 59 ~PepperPlatformAudioOutput() override; |
| 58 | 60 |
| 59 private: | 61 private: |
| 60 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; | 62 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; |
| 61 | 63 |
| 62 PepperPlatformAudioOutput(); | 64 PepperPlatformAudioOutput(); |
| 63 | 65 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 82 | 84 |
| 83 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 85 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 84 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 86 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
| 85 | 87 |
| 86 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); | 88 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 } // namespace content | 91 } // namespace content |
| 90 | 92 |
| 91 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ | 93 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ |
| OLD | NEW |