Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: media/audio/audio_output_device.h

Issue 2289543003: IPC->mojo of audio_renderer_host (Closed)
Patch Set: Some changes. Comments. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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; 116 void OnStateChanged(mojom::AudioOutputStreamState state) override;
117 void OnDeviceAuthorized(OutputDeviceStatus device_status, 117 void OnDeviceAuthorized(OutputDeviceStatus device_status,
118 const media::AudioParameters& output_params, 118 const media::AudioParameters& output_params,
119 const std::string& matched_device_id) override; 119 const std::string& matched_device_id) override;
120 void OnStreamCreated(base::SharedMemoryHandle handle, 120 void OnStreamCreated(base::SharedMemoryHandle handle,
121 base::SyncSocket::Handle socket_handle, 121 base::SyncSocket::Handle socket_handle,
122 int length) override; 122 int length) override;
123 void OnIPCClosed() override; 123 void OnIPCClosed() override;
124 124
125 protected: 125 protected:
126 // Magic required by ref_counted.h to avoid any code deleting the object 126 // 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
216 216
217 const base::TimeDelta auth_timeout_; 217 const base::TimeDelta auth_timeout_;
218 std::unique_ptr<base::OneShotTimer> auth_timeout_action_; 218 std::unique_ptr<base::OneShotTimer> auth_timeout_action_;
219 219
220 DISALLOW_COPY_AND_ASSIGN(AudioOutputDevice); 220 DISALLOW_COPY_AND_ASSIGN(AudioOutputDevice);
221 }; 221 };
222 222
223 } // namespace media 223 } // namespace media
224 224
225 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_DEVICE_H_ 225 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698