X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fcommon%2Fservice_worker%2Fservice_worker_messages.h;h=858651145b3e387a8cfa5e80298ff9c4a45e477e;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=84e87f47ad4fc16d264eb17d715b3fa8728234c5;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/common/service_worker/service_worker_messages.h b/src/content/common/service_worker/service_worker_messages.h index 84e87f4..8586511 100644 --- a/src/content/common/service_worker/service_worker_messages.h +++ b/src/content/common/service_worker/service_worker_messages.h @@ -5,6 +5,7 @@ // Message definition file, included multiple times, hence no include guard. #include "base/strings/string16.h" +#include "content/common/service_worker/service_worker_status_code.h" #include "content/common/service_worker/service_worker_types.h" #include "ipc/ipc_message_macros.h" #include "ipc/ipc_param_traits.h" @@ -16,7 +17,8 @@ #define IPC_MESSAGE_START ServiceWorkerMsgStart -IPC_ENUM_TRAITS(blink::WebServiceWorkerError::ErrorType) +IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerError::ErrorType, + blink::WebServiceWorkerError::ErrorTypeLast) IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) IPC_STRUCT_TRAITS_MEMBER(url) @@ -58,6 +60,10 @@ IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, blink::WebServiceWorkerError::ErrorType /* code */, base::string16 /* message */) +// Sent via EmbeddedWorker to dispatch install event. +IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, + int /* active_version_embedded_worker_id */) + // Sent via EmbeddedWorker to dispatch fetch event. IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent, content::ServiceWorkerFetchRequest) @@ -70,3 +76,9 @@ IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, // Informs the browser of a ServiceWorkerProvider being destroyed. IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, int /* provider_id */) + +// Informs the browser that install event handling has finished. +// Sent via EmbeddedWorker. If there was an exception during the +// event handling it'll be reported back separately (to be propagated +// to the documents). +IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished)