Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: extensions/common/extension_messages.h

Issue 2924213002: Draft: Dispatching extension events to stopped extension SW.
Patch Set: rebase @tott Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/service_worker_task_queue_factory.cc ('k') | extensions/renderer/dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_messages.h
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 1f257aeefa69d33e05feac642dd4474fdf0683d2..283d4949f89abac2b3e74c90ae0e785351070442 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -695,7 +695,7 @@ IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread,
// Notify the browser that the given extension added a listener to an event.
IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AddListener,
std::string /* extension_id */,
- GURL /* listener_url */,
+ GURL /* listener_or_worker_scope_url */,
std::string /* name */,
int /* worker_thread_id */)
@@ -703,23 +703,31 @@ IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AddListener,
// event.
IPC_MESSAGE_CONTROL4(ExtensionHostMsg_RemoveListener,
std::string /* extension_id */,
- GURL /* listener_url */,
+ GURL /* listener_or_worker_scope_url */,
std::string /* name */,
int /* worker_thread_id */)
// Notify the browser that the given extension added a listener to an event from
// a lazy background page.
-IPC_MESSAGE_CONTROL3(ExtensionHostMsg_AddLazyListener,
+IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddLazyListener,
std::string /* extension_id */,
- std::string /* name */,
- int /* worker_thread_id */)
+ std::string /* name */)
// Notify the browser that the given extension is no longer interested in
// receiving the given event from a lazy background page.
-IPC_MESSAGE_CONTROL3(ExtensionHostMsg_RemoveLazyListener,
+IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener,
+ std::string /* extension_id */,
+ std::string /* event_name */)
+
+IPC_MESSAGE_CONTROL3(ExtensionHostMsg_AddLazyServiceWorkerListener,
std::string /* extension_id */,
std::string /* name */,
- int /* worker_thread_id */)
+ GURL /* service_worker_scope */)
+
+IPC_MESSAGE_CONTROL3(ExtensionHostMsg_RemoveLazyServiceWorkerListener,
+ std::string /* extension_id */,
+ std::string /* name */,
+ GURL /* service_worker_scope */)
// Notify the browser that the given extension added a listener to instances of
// the named event that satisfy the filter.
« no previous file with comments | « extensions/browser/service_worker_task_queue_factory.cc ('k') | extensions/renderer/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698