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

Unified Diff: extensions/common/extension_messages.h

Issue 2943583002: [extension SW] Support lazy events from extension service workers. (Closed)
Patch Set: address comments 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
Index: extensions/common/extension_messages.h
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 1f257aeefa69d33e05feac642dd4474fdf0683d2..4962247e1ff78fbefc2d6710570531a1f778002f 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,35 @@ 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 */)
+
+// Notify the browser that the given extension added a listener to an event from
+// an extension service worker.
+IPC_MESSAGE_CONTROL3(ExtensionHostMsg_AddLazyServiceWorkerListener,
std::string /* extension_id */,
std::string /* name */,
- int /* worker_thread_id */)
+ GURL /* service_worker_scope */)
+
+// Notify the browser that the given extension is no longer interested in
+// receiving the given event from an extension service worker.
+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.

Powered by Google App Engine
This is Rietveld 408576698