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 // Audio rendering unit utilizing audio output stream provided by browser | 5 // Audio rendering unit utilizing audio output stream provided by browser |
6 // process through IPC. | 6 // process through IPC. |
7 // | 7 // |
8 // Relationship of classes. | 8 // Relationship of classes. |
9 // | 9 // |
10 // AudioOutputController AudioOutputDevice | 10 // AudioOutputController AudioOutputDevice |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 void Start() override; | 106 void Start() override; |
107 void Stop() override; | 107 void Stop() override; |
108 void Play() override; | 108 void Play() override; |
109 void Pause() override; | 109 void Pause() override; |
110 bool SetVolume(double volume) override; | 110 bool SetVolume(double volume) override; |
111 OutputDeviceInfo GetOutputDeviceInfo() override; | 111 OutputDeviceInfo GetOutputDeviceInfo() override; |
112 bool CurrentThreadIsRenderingThread() override; | 112 bool CurrentThreadIsRenderingThread() override; |
113 | 113 |
114 // Methods called on IO thread ---------------------------------------------- | 114 // Methods called on IO thread ---------------------------------------------- |
115 // AudioOutputIPCDelegate methods. | 115 // AudioOutputIPCDelegate methods. |
116 void OnStateChanged(AudioOutputIPCDelegateState state) override; | |
117 void OnDeviceAuthorized(OutputDeviceStatus device_status, | 116 void OnDeviceAuthorized(OutputDeviceStatus device_status, |
118 const media::AudioParameters& output_params, | 117 const media::AudioParameters& output_params, |
119 const std::string& matched_device_id) override; | 118 const std::string& matched_device_id) override; |
120 void OnStreamCreated(base::SharedMemoryHandle handle, | 119 void OnStreamCreated(base::SharedMemoryHandle handle, |
121 base::SyncSocket::Handle socket_handle, | 120 base::SyncSocket::Handle socket_handle, |
122 int length) override; | 121 int length) override; |
123 void OnIPCClosed() override; | 122 void OnIPCClosed() override; |
124 | 123 |
125 protected: | 124 protected: |
126 // Magic required by ref_counted.h to avoid any code deleting the object | 125 // Magic required by ref_counted.h to avoid any code deleting the object |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 215 |
217 const base::TimeDelta auth_timeout_; | 216 const base::TimeDelta auth_timeout_; |
218 std::unique_ptr<base::OneShotTimer> auth_timeout_action_; | 217 std::unique_ptr<base::OneShotTimer> auth_timeout_action_; |
219 | 218 |
220 DISALLOW_COPY_AND_ASSIGN(AudioOutputDevice); | 219 DISALLOW_COPY_AND_ASSIGN(AudioOutputDevice); |
221 }; | 220 }; |
222 | 221 |
223 } // namespace media | 222 } // namespace media |
224 | 223 |
225 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_DEVICE_H_ | 224 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_DEVICE_H_ |
OLD | NEW |