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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder.h

Issue 1970313002: Audio notification plumbed from guest WebContents up to embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 7 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/browser_plugin/browser_plugin_embedder.h
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.h b/content/browser/browser_plugin/browser_plugin_embedder.h
index 314053aa8050e89fce31a5ed43670c561d7b6e8e..71f97853fda22fcdbb278f2ec0d1d78e8b8630cd 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.h
+++ b/content/browser/browser_plugin/browser_plugin_embedder.h
@@ -83,6 +83,10 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver {
// is returned.
BrowserPluginGuest* GetFullPageGuest();
+ // Polls all guests for this web contents and returns true if any of them
+ // were audible recently.
+ bool WereAnyGuestsRecentlyAudible();
+
private:
explicit BrowserPluginEmbedder(WebContentsImpl* web_contents);
@@ -107,6 +111,8 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver {
WebContents* guest);
static bool StopFindingInGuest(StopFindAction action, WebContents* guest);
+ static bool GuestRecentlyAudibleCallback(WebContents* guest);
+
// Message handlers.
void OnAttach(RenderFrameHost* render_frame_host,

Powered by Google App Engine
This is Rietveld 408576698