| 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/macros.h" | 8 #include "base/macros.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // is created or after the stream is closed. | 42 // is created or after the stream is closed. |
| 43 bool StopPlayback(); | 43 bool StopPlayback(); |
| 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 OnDeviceAuthorized(media::OutputDeviceStatus device_status, | 51 void OnDeviceAuthorized(media::OutputDeviceStatus device_status, |
| 52 const media::AudioParameters& output_params) override; | 52 const media::AudioParameters& output_params, |
| 53 const std::string& matched_device_id) override; |
| 53 void OnStreamCreated(base::SharedMemoryHandle handle, | 54 void OnStreamCreated(base::SharedMemoryHandle handle, |
| 54 base::SyncSocket::Handle socket_handle, | 55 base::SyncSocket::Handle socket_handle, |
| 55 int length) override; | 56 int length) override; |
| 56 void OnIPCClosed() override; | 57 void OnIPCClosed() override; |
| 57 | 58 |
| 58 protected: | 59 protected: |
| 59 ~PepperPlatformAudioOutput() override; | 60 ~PepperPlatformAudioOutput() override; |
| 60 | 61 |
| 61 private: | 62 private: |
| 62 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; | 63 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 84 | 85 |
| 85 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 86 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 86 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 87 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
| 87 | 88 |
| 88 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); | 89 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace content | 92 } // namespace content |
| 92 | 93 |
| 93 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ | 94 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ |
| OLD | NEW |