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

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

Issue 2538793002: Log audio system used to WebRTC log. (Closed)
Patch Set: Code review. Created 4 years 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 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // GetAssociatedOutputDeviceID. Must be called on the audio worker thread 246 // GetAssociatedOutputDeviceID. Must be called on the audio worker thread
247 // (see GetTaskRunner()). 247 // (see GetTaskRunner()).
248 virtual std::string GetGroupIDOutput(const std::string& output_device_id) = 0; 248 virtual std::string GetGroupIDOutput(const std::string& output_device_id) = 0;
249 virtual std::string GetGroupIDInput(const std::string& input_device_id) = 0; 249 virtual std::string GetGroupIDInput(const std::string& input_device_id) = 0;
250 250
251 // Create a new AudioLog object for tracking the behavior for one or more 251 // Create a new AudioLog object for tracking the behavior for one or more
252 // instances of the given component. See AudioLogFactory for more details. 252 // instances of the given component. See AudioLogFactory for more details.
253 virtual std::unique_ptr<AudioLog> CreateAudioLog( 253 virtual std::unique_ptr<AudioLog> CreateAudioLog(
254 AudioLogFactory::AudioComponent component) = 0; 254 AudioLogFactory::AudioComponent component) = 0;
255 255
256 // Gets the name of the audio manager (e.g., Windows, Mac, PulseAudio).
257 virtual const char* GetName() = 0;
258
256 protected: 259 protected:
257 AudioManager(scoped_refptr<base::SingleThreadTaskRunner> task_runner, 260 AudioManager(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
258 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner); 261 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner);
259 virtual ~AudioManager(); 262 virtual ~AudioManager();
260 263
261 private: 264 private:
262 friend class base::DeleteHelper<AudioManager>; 265 friend class base::DeleteHelper<AudioManager>;
263 266
264 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 267 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
265 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_; 268 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_;
266 DISALLOW_COPY_AND_ASSIGN(AudioManager); 269 DISALLOW_COPY_AND_ASSIGN(AudioManager);
267 }; 270 };
268 271
269 } // namespace media 272 } // namespace media
270 273
271 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ 274 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « media/audio/android/audio_manager_android.cc ('k') | media/audio/audio_output_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698