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

Unified Diff: third_party/WebKit/public/platform/WebViewScheduler.h

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Switched approach to use WebContentsImpl::WasRecentlyAudible Created 4 years, 2 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: third_party/WebKit/public/platform/WebViewScheduler.h
diff --git a/third_party/WebKit/public/platform/WebViewScheduler.h b/third_party/WebKit/public/platform/WebViewScheduler.h
index ade2394ebf7e3c315f8b03409dd91af2699cfa2c..e3f3d2b7872c29dfea8854019cc726df125b5ead 100644
--- a/third_party/WebKit/public/platform/WebViewScheduler.h
+++ b/third_party/WebKit/public/platform/WebViewScheduler.h
@@ -61,6 +61,8 @@ public:
// Sets the virtual time policy, which is applied imemdiatly to all child WebFrameSchedulers.
virtual void setVirtualTimePolicy(VirtualTimePolicy) = 0;
+
+ virtual void audioStateChanged(bool isPlayingAudio) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698