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

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, 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
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 e67aea53691384492494e4c32e6572d2041c4e49..45d75acbea3924092340f69e6d696081fe4f8d23 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
@@ -229,12 +230,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);
« no previous file with comments | « content/browser/service_worker/service_worker_version.cc ('k') | content/child/service_worker/service_worker_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698