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

Unified Diff: content/public/browser/media_observer.h

Issue 11573066: Add a method to tab_utils.h to find out whether a tab is playing audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review/rewrite Created 7 years, 10 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/public/browser/media_observer.h
diff --git a/content/public/browser/media_observer.h b/content/public/browser/media_observer.h
index 4bf7c008f375f57fb3562414396aeba6bedff558..5110a8485baa474988c5d4260fce434d5c4b92ba 100644
--- a/content/public/browser/media_observer.h
+++ b/content/public/browser/media_observer.h
@@ -41,6 +41,12 @@ class MediaObserver {
const MediaStreamDevice& device,
MediaRequestState state) = 0;
+ // Called when an audio stream is played or paused.
+ virtual void OnAudioStreamPlayingChanged(
+ int render_process_id,
+ int render_view_id,
+ bool playing) = 0;
+
protected:
virtual ~MediaObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698