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

Unified Diff: media/audio/fake_audio_manager.h

Issue 2784433002: Ensures that audio tasks cannot run after AudioManager is deleted. (Closed)
Patch Set: rebase Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/cras/cras_unified_unittest.cc ('k') | media/audio/fake_audio_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/fake_audio_manager.h
diff --git a/media/audio/fake_audio_manager.h b/media/audio/fake_audio_manager.h
index 022c664c106d35aaee34563bf0a5559fea11e0a7..a40e7159ef1eac1cec6228d9e3885ea763ae220b 100644
--- a/media/audio/fake_audio_manager.h
+++ b/media/audio/fake_audio_manager.h
@@ -16,10 +16,9 @@ namespace media {
class MEDIA_EXPORT FakeAudioManager : public AudioManagerBase {
public:
- FakeAudioManager(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
- AudioLogFactory* audio_log_factory);
+ FakeAudioManager(std::unique_ptr<AudioThread> audio_thread,
+ AudioLogFactory* audio_log_factory);
+ ~FakeAudioManager() override;
// Implementation of AudioManager.
bool HasAudioOutputDevices() override;
@@ -46,8 +45,6 @@ class MEDIA_EXPORT FakeAudioManager : public AudioManagerBase {
const std::string& device_id) override;
protected:
- ~FakeAudioManager() override;
-
AudioParameters GetPreferredOutputStreamParameters(
const std::string& output_device_id,
const AudioParameters& input_params) override;
« no previous file with comments | « media/audio/cras/cras_unified_unittest.cc ('k') | media/audio/fake_audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698