| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Sets the volume. Returns false on error or if called before the stream | 46 // Sets the volume. Returns false on error or if called before the stream |
| 47 // is created or after the stream is closed. | 47 // is created or after the stream is closed. |
| 48 bool SetVolume(double volume); | 48 bool SetVolume(double volume); |
| 49 | 49 |
| 50 // Closes the stream. Make sure to call this before the object is | 50 // Closes the stream. Make sure to call this before the object is |
| 51 // destructed. | 51 // destructed. |
| 52 void ShutDown(); | 52 void ShutDown(); |
| 53 | 53 |
| 54 // media::AudioOutputIPCDelegate implementation. | 54 // media::AudioOutputIPCDelegate implementation. |
| 55 void OnStateChanged(media::AudioOutputIPCDelegateState state) override; | 55 void OnStateChanged(media::mojom::AudioOutputStreamState state) override; |
| 56 void OnDeviceAuthorized(media::OutputDeviceStatus device_status, | 56 void OnDeviceAuthorized(media::OutputDeviceStatus device_status, |
| 57 const media::AudioParameters& output_params, | 57 const media::AudioParameters& output_params, |
| 58 const std::string& matched_device_id) override; | 58 const std::string& matched_device_id) override; |
| 59 void OnStreamCreated(base::SharedMemoryHandle handle, | 59 void OnStreamCreated(base::SharedMemoryHandle handle, |
| 60 base::SyncSocket::Handle socket_handle, | 60 base::SyncSocket::Handle socket_handle, |
| 61 int length) override; | 61 int length) override; |
| 62 void OnIPCClosed() override; | 62 void OnIPCClosed() override; |
| 63 | 63 |
| 64 protected: | 64 protected: |
| 65 ~PepperPlatformAudioOutput() override; | 65 ~PepperPlatformAudioOutput() override; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 91 | 91 |
| 92 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 92 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 93 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 93 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
| 94 | 94 |
| 95 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); | 95 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace content | 98 } // namespace content |
| 99 | 99 |
| 100 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ | 100 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ |
| OLD | NEW |