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

Unified Diff: extensions/browser/event_listener_map.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/BUILD.gn ('k') | extensions/browser/event_listener_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/event_listener_map.h
diff --git a/extensions/browser/event_listener_map.h b/extensions/browser/event_listener_map.h
index ea25ea6b433561dbdd8d8e4954e6f9eb6368eb6a..ec3aee7e3c9ab6d8473db2317a2220b1ac03dad0 100644
--- a/extensions/browser/event_listener_map.h
+++ b/extensions/browser/event_listener_map.h
@@ -67,6 +67,7 @@ class EventListener {
const std::string& event_name,
const std::string& extension_id,
content::RenderProcessHost* process,
+ const GURL& service_worker_scope,
int worker_thread_id,
std::unique_ptr<base::DictionaryValue> filter);
@@ -83,6 +84,7 @@ class EventListener {
// Returns true if this listener was registered for an extension service
// worker.
bool IsForServiceWorker() const;
+ bool is_for_service_worker() const { return is_for_service_worker_; }
// Modifies this listener to be a lazy listener, clearing process references.
void MakeLazy();
@@ -105,6 +107,7 @@ class EventListener {
const std::string& extension_id,
const GURL& listener_url,
content::RenderProcessHost* process,
+ bool is_for_service_worker,
int worker_thread_id,
std::unique_ptr<base::DictionaryValue> filter);
@@ -112,6 +115,7 @@ class EventListener {
const std::string extension_id_;
const GURL listener_url_;
content::RenderProcessHost* process_;
+ const bool is_for_service_worker_ = false;
const int worker_thread_id_;
std::unique_ptr<base::DictionaryValue> filter_;
EventFilter::MatcherID matcher_id_; // -1 if unset.
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/event_listener_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698