|
Tracking push events for lucid sleep
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
Committed: https://crrev.com/79788f68a65e9f99eb23c19fa5ba52d1a52996bf
Cr-Commit-Position: refs/heads/master@{#314219}
Total comments: 3
Total comments: 16
Total comments: 6
Total comments: 14
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+921 lines, -140 lines) |
Patch |
 |
M |
chrome/browser/chromeos/chrome_browser_main_chromeos.h
|
View
|
1
2
3
4
5
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/chrome_browser_main_chromeos.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/net/wake_on_wifi_manager.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/net/wake_on_wifi_manager.cc
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/power/extension_event_observer.h
|
View
|
1
2
3
4
|
1 chunk |
+136 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/power/extension_event_observer.cc
|
View
|
1
2
3
4
|
1 chunk |
+272 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/power/extension_event_observer_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+319 lines, -0 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/power/light_bar.h
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -36 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/power/light_bar.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -60 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/chrome_extensions_network_delegate.cc
|
View
|
1
2
3
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_chromeos.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/testing_profile_manager.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/event_router.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+35 lines, -17 lines |
4 comments
|
Download
|
 |
M |
extensions/browser/extension_host.h
|
View
|
1
2
3
4
5
|
6 chunks |
+25 lines, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_host.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+44 lines, -1 line |
3 comments
|
Download
|
 |
A |
extensions/browser/extension_host_observer.h
|
View
|
1
2
3
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/process_manager.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/process_manager.cc
|
View
|
1
2
3
|
2 chunks |
+12 lines, -4 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/process_manager_observer.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/common/extension_messages.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/extensions.gyp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/dispatcher.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
Total messages: 41 (6 generated)
|