1. 03 Feb, 2015 39 commits
  2. 02 Feb, 2015 1 commit
    • chirantan's avatar
      Tracking push events for lucid sleep · 79788f68
      chirantan authored
      Phase 2 of lucid sleep involves allowing GCM-enabled apps and extensions
      to wake up the system to process push messages.  This brings up the
      problem of knowing when those apps/extensions are done processing the
      event so that the system can go back to sleep.
      
      This CL introduces a new class whose responsibility is to monitor
      GCM-enabled apps and extensions and delay the system suspend while they
      are processing push messages.  Additionally, network requests that are
      started while the app/extension is processing a push message are
      considered related to that message and can further delay the system
      suspend even after the push message itself has been acked by the
      extension.
      
      BUG=397328
      
      Review URL: https://codereview.chromium.org/823703004
      
      Cr-Commit-Position: refs/heads/master@{#314219}
      79788f68