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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: WebFrames! 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/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
index a4b7c679dc8ae299d214eb4aa7f35b86fd22484c..afee131bdd9882fca19b02a8499cf3acf112e709 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
@@ -58,6 +58,9 @@ class BLINK_PLATFORM_EXPORT WebViewSchedulerImpl : public WebViewScheduler {
void DecrementBackgroundParserCount();
void Unregister(WebFrameSchedulerImpl* frame_scheduler);
+ void OnAudioStateChangedInFrame();
+ bool IsAudioPlaying() const;
+
private:
void setAllowVirtualTimeToAdvance(bool allow_virtual_time_to_advance);
void ApplyVirtualTimePolicy();
@@ -73,6 +76,7 @@ class BLINK_PLATFORM_EXPORT WebViewSchedulerImpl : public WebViewScheduler {
bool allow_virtual_time_to_advance_;
bool have_seen_loading_task_;
bool virtual_time_;
+ bool is_audio_playing_;
DISALLOW_COPY_AND_ASSIGN(WebViewSchedulerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698