summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension_messages.h
diff options
context:
space:
mode:
authorchirantan <chirantan@chromium.org>2015-02-02 15:57:25 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-02 23:58:22 +0000
commit79788f68a65e9f99eb23c19fa5ba52d1a52996bf (patch)
treefa0f0ba4a6e685e0952829af182fe07efd08c58c /extensions/common/extension_messages.h
parentd64f27d7f2f00fef6844d8f89a5371df0bc88a8a (diff)
downloadchromium_src-79788f68a65e9f99eb23c19fa5ba52d1a52996bf.zip
chromium_src-79788f68a65e9f99eb23c19fa5ba52d1a52996bf.tar.gz
chromium_src-79788f68a65e9f99eb23c19fa5ba52d1a52996bf.tar.bz2
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 Review URL: https://codereview.chromium.org/823703004 Cr-Commit-Position: refs/heads/master@{#314219}
Diffstat (limited to 'extensions/common/extension_messages.h')
-rw-r--r--extensions/common/extension_messages.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index ba98050..def378d 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -630,7 +630,7 @@ IPC_MESSAGE_CONTROL4(ExtensionHostMsg_RemoveFilteredListener,
bool /* lazy */)
// Notify the browser that an event has finished being dispatched.
-IPC_MESSAGE_ROUTED0(ExtensionHostMsg_EventAck)
+IPC_MESSAGE_ROUTED1(ExtensionHostMsg_EventAck, int /* message_id */)
// Open a channel to all listening contexts owned by the extension with
// the given ID. This always returns a valid port ID which can be used for