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

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

Issue 2038053002: Change audio render thread checking to use new AudioRendererSink::BelongsToRendererThread() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using the new BelongsTo...() function for thread checking. Created 4 years, 6 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // AudioRendererSink implementation. 98 // AudioRendererSink implementation.
99 void Initialize(const AudioParameters& params, 99 void Initialize(const AudioParameters& params,
100 RenderCallback* callback) override; 100 RenderCallback* callback) override;
101 void Start() override; 101 void Start() override;
102 void Stop() override; 102 void Stop() override;
103 void Play() override; 103 void Play() override;
104 void Pause() override; 104 void Pause() override;
105 bool SetVolume(double volume) override; 105 bool SetVolume(double volume) override;
106 OutputDeviceInfo GetOutputDeviceInfo() override; 106 OutputDeviceInfo GetOutputDeviceInfo() override;
107 bool BelongsToRenderingThread() override;
107 108
108 // Methods called on IO thread ---------------------------------------------- 109 // Methods called on IO thread ----------------------------------------------
109 // AudioOutputIPCDelegate methods. 110 // AudioOutputIPCDelegate methods.
110 void OnStateChanged(AudioOutputIPCDelegateState state) override; 111 void OnStateChanged(AudioOutputIPCDelegateState state) override;
111 void OnDeviceAuthorized(OutputDeviceStatus device_status, 112 void OnDeviceAuthorized(OutputDeviceStatus device_status,
112 const media::AudioParameters& output_params, 113 const media::AudioParameters& output_params,
113 const std::string& matched_device_id) override; 114 const std::string& matched_device_id) override;
114 void OnStreamCreated(base::SharedMemoryHandle handle, 115 void OnStreamCreated(base::SharedMemoryHandle handle,
115 base::SyncSocket::Handle socket_handle, 116 base::SyncSocket::Handle socket_handle,
116 int length) override; 117 int length) override;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 base::WaitableEvent did_receive_auth_; 201 base::WaitableEvent did_receive_auth_;
201 AudioParameters output_params_; 202 AudioParameters output_params_;
202 OutputDeviceStatus device_status_; 203 OutputDeviceStatus device_status_;
203 204
204 DISALLOW_COPY_AND_ASSIGN(AudioOutputDevice); 205 DISALLOW_COPY_AND_ASSIGN(AudioOutputDevice);
205 }; 206 };
206 207
207 } // namespace media 208 } // namespace media
208 209
209 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_DEVICE_H_ 210 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698