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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/web_frame_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_frame_scheduler_impl.h
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h
index 2e2188830670a2002fc9062e064269ab8172f966..ad095e7326bfa67bdb4ae75a158babdef198da70 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h
@@ -49,6 +49,9 @@ class BLINK_PLATFORM_EXPORT WebFrameSchedulerImpl : public WebFrameScheduler {
void didStartLoading(unsigned long identifier) override;
void didStopLoading(unsigned long identifier) override;
void setDocumentParsingInBackground(bool background_parser_active) override;
+ void audioStateChanged(bool is_audio_playing) override;
+
+ bool IsAudioPlaying() const;
private:
friend class WebViewSchedulerImpl;
@@ -70,6 +73,7 @@ class BLINK_PLATFORM_EXPORT WebFrameSchedulerImpl : public WebFrameScheduler {
bool frame_visible_;
bool page_visible_;
bool cross_origin_;
+ bool is_audio_playing_;
DISALLOW_COPY_AND_ASSIGN(WebFrameSchedulerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698