diff options
author | dalecurtis <dalecurtis@chromium.org> | 2014-09-10 19:51:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-11 03:07:16 +0000 |
commit | 484d29dcb45ca362fc9049c37dd3a51e11492f14 (patch) | |
tree | cec6b893a679431117b957c975ada3f7e0a946fa /chrome/chrome_browser.gypi | |
parent | e6492dbcddf1845779da22d0de309bb9e496dd2c (diff) | |
download | chromium_src-484d29dcb45ca362fc9049c37dd3a51e11492f14.zip chromium_src-484d29dcb45ca362fc9049c37dd3a51e11492f14.tar.gz chromium_src-484d29dcb45ca362fc9049c37dd3a51e11492f14.tar.bz2 |
Use AudioStreamMonitor to control power save blocking.
Prevents looping, soundless videos from preventing system sleep if they're
in a background tab. We don't want soundless videos in the main tab to
allow sleeping as they'll impact the muted video + captions use case.
Reworks WebContentsImpl to track active media players and whether the
attached WebContents is visible. When visible and there's an active video
player, it will create a power save blocker. One blocker is shared for all
active media players for simplicity.
Reworks AudioStreamMonitor to handle the PowerSaveBlocker for audio
such that one is only created when non-silent audio is present.
To prevent splitting power blocking duties across chrome/ and content/,
AudioStreamMonitor now lives in content/. WebContents exposes a
WasRecentlyAudible() method for the existing tab audio indicator.
BUG=43667,367785
TEST=manual.
Review URL: https://codereview.chromium.org/478543003
Cr-Commit-Position: refs/heads/master@{#294303}
Diffstat (limited to 'chrome/chrome_browser.gypi')
-rw-r--r-- | chrome/chrome_browser.gypi | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi index 59f24a1..a873dec 100644 --- a/chrome/chrome_browser.gypi +++ b/chrome/chrome_browser.gypi @@ -631,8 +631,6 @@ 'browser/mac/relauncher.h', 'browser/mac/security_wrappers.cc', 'browser/mac/security_wrappers.h', - 'browser/media/audio_stream_monitor.cc', - 'browser/media/audio_stream_monitor.h', 'browser/media/cast_transport_host_filter.cc', 'browser/media/cast_transport_host_filter.h', 'browser/media/desktop_media_list.h', |