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

Unified Diff: extensions/common/extension_messages.h

Issue 2943583002: [extension SW] Support lazy events from extension service workers. (Closed)
Patch Set: sync @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 c95da70f239ddbfe8e81fabbab2803c567f195c0..bcbd18aca6e7540bfdd65424c65520cb55ffe7dd 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -691,7 +691,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 */)
@@ -699,23 +699,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.
« 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