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

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host.h

Issue 1800953003: ServiceWorker: Move ExtendableMessageEvent dispatching out of ServiceWorkerVersion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: content/browser/service_worker/service_worker_dispatcher_host.h
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.h b/content/browser/service_worker/service_worker_dispatcher_host.h
index 4b1fb949390db52ae92f6af8b3722f9b91e123b3..e1f57d02aa314e9841cef85eb2f8cc2fecd69dd3 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.h
+++ b/content/browser/service_worker/service_worker_dispatcher_host.h
@@ -154,6 +154,23 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
void OnTerminateWorker(int handle_id);
+ template <typename SourceInfo>
+ void DispatchExtendableMessageEvent(
+ scoped_refptr<ServiceWorkerVersion> worker,
+ const base::string16& message,
+ const url::Origin& source_origin,
+ const std::vector<TransferredMessagePort>& sent_message_ports,
+ const SourceInfo& source_info);
+ void DispatchExtendableMessageEventAfterStartWorker(
+ scoped_refptr<ServiceWorkerVersion> worker,
+ const base::string16& message,
+ const url::Origin& source_origin,
+ const std::vector<TransferredMessagePort>& sent_message_ports,
+ const ExtendableMessageEventSource& source);
+ void DidFailToDispatchExtendableMessageEvent(
+ const std::vector<TransferredMessagePort>& sent_message_ports,
+ ServiceWorkerStatusCode status);
+
ServiceWorkerRegistrationHandle* FindRegistrationHandle(
int provider_id,
int64_t registration_handle_id);

Powered by Google App Engine
This is Rietveld 408576698