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

Unified Diff: media/audio/audio_manager_base.h

Issue 2503693002: Tracks all open input streams in AudioManagerBase. (Closed)
Patch Set: close fake streams explicitly Created 4 years, 1 month 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 | « no previous file | media/audio/audio_manager_base.cc » ('j') | media/audio/mac/audio_manager_mac.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager_base.h
diff --git a/media/audio/audio_manager_base.h b/media/audio/audio_manager_base.h
index f8f5260be68ced768966c28b313166d0aa4ff89b..5bee0f1b983bf4cc1665449996789b020fc973f9 100644
--- a/media/audio/audio_manager_base.h
+++ b/media/audio/audio_manager_base.h
@@ -7,6 +7,7 @@
#include <memory>
#include <string>
+#include <unordered_set>
#include <utility>
#include "base/compiler_specific.h"
@@ -160,6 +161,12 @@ class MEDIA_EXPORT AudioManagerBase : public AudioManager {
// Track output state change listeners.
base::ObserverList<AudioDeviceListener> output_listeners_;
+ // Contains currently open fake input/output streams.
+ // TODO(alokp): Remove this after tracking down streams that are not closed
+ // before shutdown: crbug.com/608049.
+ std::unordered_set<AudioOutputStream*> fake_output_streams_;
+ std::unordered_set<AudioInputStream*> fake_input_streams_;
+
// Map of cached AudioOutputDispatcher instances. Must only be touched
// from the audio thread (no locking).
AudioOutputDispatchers output_dispatchers_;
« no previous file with comments | « no previous file | media/audio/audio_manager_base.cc » ('j') | media/audio/mac/audio_manager_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698