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

Unified Diff: media/mojo/services/mojo_media_client.h

Issue 1806313003: Pass task runners to AudioManager constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK -> CHECK Created 4 years, 8 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
Index: media/mojo/services/mojo_media_client.h
diff --git a/media/mojo/services/mojo_media_client.h b/media/mojo/services/mojo_media_client.h
index 4b55c9f9fac616a198750b1a51143ec7f8bf1e4d..95016413a497525063a35653c92a14c0ac734358 100644
--- a/media/mojo/services/mojo_media_client.h
+++ b/media/mojo/services/mojo_media_client.h
@@ -34,6 +34,10 @@ class MojoMediaClient {
// Called exactly once before any other method.
virtual void Initialize();
+ // Called before the host application is scheduled to quit.
+ // The application message loop is still valid at this point, so all clean
+ // up tasks requiring the message loop must be completed before returning.
+ virtual void WillQuit();
virtual std::unique_ptr<AudioDecoder> CreateAudioDecoder(
scoped_refptr<base::SingleThreadTaskRunner> task_runner);

Powered by Google App Engine
This is Rietveld 408576698