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

Unified Diff: media/audio/audio_output_controller.h

Issue 8385001: Stop audio streams in all codepaths that need it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: enal CR response. Created 9 years, 2 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 | « no previous file | media/audio/audio_output_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_controller.h
diff --git a/media/audio/audio_output_controller.h b/media/audio/audio_output_controller.h
index 2c2246bd0d50e883c429e460a87cb0235a060288..bae37734cb0b708be2013e13f0019a0a228d150c 100644
--- a/media/audio/audio_output_controller.h
+++ b/media/audio/audio_output_controller.h
@@ -193,6 +193,9 @@ class MEDIA_EXPORT AudioOutputController
// Helper method that starts physical stream.
void StartStream();
+ // Helper method that stops, closes, and NULLs |*stream_|.
+ void StopCloseAndClearStream();
+
// |handler_| may be called only if |state_| is not kClosed.
EventHandler* handler_;
AudioOutputStream* stream_;
« no previous file with comments | « no previous file | media/audio/audio_output_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698