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

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 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
« no previous file with comments | « content/browser/renderer_host/media/mock_media_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c1727dfe638ba922abd33b8a16053f2f2a2e9cad 100644
--- a/content/public/browser/media_observer.h
+++ b/content/public/browser/media_observer.h
@@ -41,6 +41,13 @@ 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,
+ int stream_id,
+ bool playing) = 0;
+
protected:
virtual ~MediaObserver() {}
};
« no previous file with comments | « content/browser/renderer_host/media/mock_media_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698