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

Unified Diff: content/common/service_worker/service_worker_messages.h

Issue 445883003: ServiceWorker: Consolidate version change messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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/common/service_worker/service_worker_messages.h
diff --git a/content/common/service_worker/service_worker_messages.h b/content/common/service_worker/service_worker_messages.h
index edbff41e1909d760e90d89aa6ef1f48a3bc582de..b959a9c8fc35d43d82c0d6dac71585792e853923 100644
--- a/content/common/service_worker/service_worker_messages.h
+++ b/content/common/service_worker/service_worker_messages.h
@@ -57,6 +57,12 @@ IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo)
IPC_STRUCT_TRAITS_MEMBER(state)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes)
+ IPC_STRUCT_TRAITS_MEMBER(installing)
+ IPC_STRUCT_TRAITS_MEMBER(waiting)
+ IPC_STRUCT_TRAITS_MEMBER(active)
+IPC_STRUCT_TRAITS_END()
+
IPC_ENUM_TRAITS_MAX_VALUE(
blink::WebServiceWorkerCacheError,
blink::WebServiceWorkerCacheErrorLast)
@@ -188,26 +194,12 @@ IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged,
int /* handle_id */,
blink::WebServiceWorkerState)
-// Tells the child process to set the installing ServiceWorker for the given
-// provider.
-IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetInstallingServiceWorker,
- int /* thread_id */,
- int /* provider_id */,
- content::ServiceWorkerObjectInfo)
-
-// Tells the child process to set the waiting ServiceWorker for the given
-// provider.
-IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetWaitingServiceWorker,
+// Tells the child process to set service workers for the given provider.
+IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetVersionAttributes,
int /* thread_id */,
int /* provider_id */,
- content::ServiceWorkerObjectInfo)
-
-// Tells the child process to set the active ServiceWorker for the given
-// provider.
-IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetActiveServiceWorker,
- int /* thread_id */,
- int /* provider_id */,
- content::ServiceWorkerObjectInfo)
+ int /* changed_mask */,
+ content::ServiceWorkerVersionAttributes)
// Tells the child process to set the controller ServiceWorker for the given
// provider.
« no previous file with comments | « content/child/service_worker/service_worker_message_filter.cc ('k') | content/common/service_worker/service_worker_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698