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

Unified Diff: content/browser/renderer_host/media/audio_renderer_host.h

Issue 1580493004: Plumb audio focus support for spitzer clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate_hookup
Patch Set: Rebase. Created 4 years, 11 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: content/browser/renderer_host/media/audio_renderer_host.h
diff --git a/content/browser/renderer_host/media/audio_renderer_host.h b/content/browser/renderer_host/media/audio_renderer_host.h
index e549df20cc94f0778b29efcfc7bc0f93e3b23677..c0e5e859c60a344f0b18eb986970359784d56f65 100644
--- a/content/browser/renderer_host/media/audio_renderer_host.h
+++ b/content/browser/renderer_host/media/audio_renderer_host.h
@@ -159,6 +159,10 @@ class CONTENT_EXPORT AudioRendererHost : public BrowserMessageFilter {
// Play the audio stream referenced by |stream_id|.
void OnPlayStream(int stream_id);
+ // Called via the focus controller after an OnPlayStream() request for a
+ // focusable stream (see AudioParmeters::FOCUSABLE).
+ void OnFocusAvailable(int stream_id, base::TimeTicks play_time);
+
// Pause the audio stream referenced by |stream_id|.
void OnPauseStream(int stream_id);

Powered by Google App Engine
This is Rietveld 408576698