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

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

Issue 733703002: Make sure message ports that are transferred to a serviceworker end up in the right process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@service-worker-message-port-transfer
Patch Set: fix test compile Created 6 years, 1 month 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_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index 0dcf9a4c912a1b3c36a2dcf16df83f791951380f..867a71c93baae7fa562e6505b25ecf66abf99ed6 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -155,6 +155,11 @@ class CONTENT_EXPORT ServiceWorkerVersion
// message is successfully sent or not.
void SendMessage(const IPC::Message& message, const StatusCallback& callback);
+ // Sends a message event to the associated embedded worker.
+ void DispatchMessageEvent(const base::string16& message,
+ const std::vector<int>& sent_message_port_ids,
+ const StatusCallback& callback);
+
// Sends install event to the associated embedded worker and asynchronously
// calls |callback| when it errors out or it gets a response from the worker
// to notify install completion.

Powered by Google App Engine
This is Rietveld 408576698