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

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

Issue 1141813002: ServiceWorker: Introduce ServiceWorkerMessageEvent to replace MessageEvent (2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 28b9f4f98677b0094ab07abfcd9bcd53f32c5629..e581f7283b1c00332192a611a7f4cc0a11939c1f 100644
--- a/content/child/service_worker/service_worker_dispatcher.h
+++ b/content/child/service_worker/service_worker_dispatcher.h
@@ -26,6 +26,8 @@ namespace IPC {
class Message;
}
+struct ServiceWorkerMsg_MessageToDocument_Params;
+
namespace content {
class ServiceWorkerMessageFilter;
@@ -36,7 +38,6 @@ class WebServiceWorkerRegistrationImpl;
struct ServiceWorkerObjectInfo;
struct ServiceWorkerRegistrationObjectInfo;
struct ServiceWorkerVersionAttributes;
-struct TransferredMessagePort;
// This class manages communication with the browser process about
// registration of the service worker, exposed to renderer and worker
@@ -209,12 +210,7 @@ class CONTENT_EXPORT ServiceWorkerDispatcher
int provider_id,
const ServiceWorkerObjectInfo& info,
bool should_notify_controllerchange);
- void OnPostMessage(
- int thread_id,
- int provider_id,
- const base::string16& message,
- const std::vector<TransferredMessagePort>& sent_message_ports,
- const std::vector<int>& new_routing_ids);
+ void OnPostMessage(const ServiceWorkerMsg_MessageToDocument_Params& params);
// Keeps map from handle_id to ServiceWorker object.
void AddServiceWorker(int handle_id, WebServiceWorkerImpl* worker);

Powered by Google App Engine
This is Rietveld 408576698