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

Unified Diff: media/audio/audio_output_ipc.h

Issue 2821203005: Add a mojo implementation of AudioOutputIPC. (Closed)
Patch Set: Use ScopedClosureRunner. 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 | « content/test/BUILD.gn ('k') | media/mojo/interfaces/audio_output_stream.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_ipc.h
diff --git a/media/audio/audio_output_ipc.h b/media/audio/audio_output_ipc.h
index 403081bf0dc1f84ea206d9fa64c242657d536bd2..b6fd58de348bae3020dca6e007cde0eda20b8b69 100644
--- a/media/audio/audio_output_ipc.h
+++ b/media/audio/audio_output_ipc.h
@@ -97,7 +97,10 @@ class MEDIA_EXPORT AudioOutputIPC {
virtual void PauseStream() = 0;
// Closes the audio stream which should shut down the corresponding
- // AudioOutputController in the peer process.
+ // AudioOutputController in the peer process. Usage of an AudioOutputIPC must
+ // always end with a call to CloseStream(), and the |delegate| passed to other
+ // method must remain valid until then. An exception is if OnIPCClosed is
+ // called first.
virtual void CloseStream() = 0;
// Sets the volume of the audio stream.
« no previous file with comments | « content/test/BUILD.gn ('k') | media/mojo/interfaces/audio_output_stream.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698