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

Unified Diff: content/child/service_worker/service_worker_dispatcher.h

Issue 246023007: Chromium-side plumbing for ServiceWorker -> Document postMessage (2/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: message port threading fix Created 6 years, 7 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/child/service_worker/service_worker_dispatcher.h
diff --git a/content/child/service_worker/service_worker_dispatcher.h b/content/child/service_worker/service_worker_dispatcher.h
index 2c6ca3a8ea5a7ee27f78be042b62374f70eea534..b596b37483ca571407e576ff3e8c75ebcbfd1062 100644
--- a/content/child/service_worker/service_worker_dispatcher.h
+++ b/content/child/service_worker/service_worker_dispatcher.h
@@ -6,6 +6,7 @@
#define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
#include <map>
+#include <vector>
#include "base/id_map.h"
#include "base/memory/ref_counted.h"
@@ -106,6 +107,11 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
void OnSetCurrentServiceWorker(int thread_id,
int provider_id,
const ServiceWorkerObjectInfo& info);
+ void OnPostMessage(int thread_id,
+ int provider_id,
+ const base::string16& message,
+ const std::vector<int>& sent_message_port_ids,
+ const std::vector<int>& new_routing_ids);
// Keeps map from handle_id to ServiceWorker object.
void AddServiceWorker(int handle_id, WebServiceWorkerImpl* worker);

Powered by Google App Engine
This is Rietveld 408576698