-
jfroy authored
Chromium provides PowerObserver and PowerMonitor objects to allow subsystems to react to power suspend and resume events. On iOS this actually tracks app lifecycle events for backgrounding. The patch adds a power observer that destroys the compression session on power suspend events and re-initializes the compression session on power resume events. This allows the encoder to properly transition to the background on iOS and resume when the app comes back to the foreground. Note that for this to work overall, the sender client must create a background task to allow networking to continue. Otherwise the receiver will timeout per spec. R=miu@chromium.org BUG=477895 Review URL: https://codereview.chromium.org/1094403002 Cr-Commit-Position: refs/heads/master@{#326938}
5f83e5be