| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void OnStateChanged(media::AudioOutputIPCDelegateState state) override; | 51 void OnStateChanged(media::AudioOutputIPCDelegateState state) override; |
| 52 void OnDeviceAuthorized(media::OutputDeviceStatus device_status, | 52 void OnDeviceAuthorized(media::OutputDeviceStatus device_status, |
| 53 const media::AudioParameters& output_params) override; | 53 const media::AudioParameters& output_params, |
| 54 const std::string& matched_device_id) override; |
| 54 void OnStreamCreated(base::SharedMemoryHandle handle, | 55 void OnStreamCreated(base::SharedMemoryHandle handle, |
| 55 base::SyncSocket::Handle socket_handle, | 56 base::SyncSocket::Handle socket_handle, |
| 56 int length) override; | 57 int length) override; |
| 57 void OnIPCClosed() override; | 58 void OnIPCClosed() override; |
| 58 | 59 |
| 59 protected: | 60 protected: |
| 60 ~PepperPlatformAudioOutput() override; | 61 ~PepperPlatformAudioOutput() override; |
| 61 | 62 |
| 62 private: | 63 private: |
| 63 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; | 64 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 85 | 86 |
| 86 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 87 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 87 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 88 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); | 90 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace content | 93 } // namespace content |
| 93 | 94 |
| 94 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ | 95 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ |
| OLD | NEW |