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

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

Issue 478543003: Use AudioStreamMonitor to control power save blocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move it! Created 6 years, 4 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/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 80766dcb6ee4aa9765fb8eff1266f966c3a7d5bd..b840bee4ee6325977a6fe8f12e137082de480c77 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -576,6 +576,9 @@ class WebContents : public PageNavigator,
// Requests the renderer to insert CSS into the main frame's document.
virtual void InsertCSS(const std::string& css) = 0;
+ // Returns true if audio has recently been audible from the WebContents.
+ virtual bool WasRecentlyAudible() = 0;
+
#if defined(OS_ANDROID)
CONTENT_EXPORT static WebContents* FromJavaWebContents(
jobject jweb_contents_android);

Powered by Google App Engine
This is Rietveld 408576698