OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Message definition file, included multiple times, hence no include guard. | 5 // Message definition file, included multiple times, hence no include guard. |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "base/time/time.h" |
13 #include "content/common/service_worker/service_worker_client_info.h" | 14 #include "content/common/service_worker/service_worker_client_info.h" |
14 #include "content/common/service_worker/service_worker_status_code.h" | 15 #include "content/common/service_worker/service_worker_status_code.h" |
15 #include "content/common/service_worker/service_worker_types.h" | 16 #include "content/common/service_worker/service_worker_types.h" |
16 #include "content/public/common/platform_notification_data.h" | 17 #include "content/public/common/platform_notification_data.h" |
17 #include "content/public/common/push_event_payload.h" | 18 #include "content/public/common/push_event_payload.h" |
18 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
19 #include "ipc/ipc_param_traits.h" | 20 #include "ipc/ipc_param_traits.h" |
20 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerError.h" | 21 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerError.h" |
21 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerEventResult.h" | 22 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerEventResult.h" |
22 #include "url/gurl.h" | 23 #include "url/gurl.h" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // |provider_id| identifies the ServiceWorkerProviderHost hosting the service | 249 // |provider_id| identifies the ServiceWorkerProviderHost hosting the service |
249 // worker. |version_id| identifies the ServiceWorkerVersion and | 250 // worker. |version_id| identifies the ServiceWorkerVersion and |
250 // |embedded_worker_id| identifies the EmbeddedWorkerInstance. | 251 // |embedded_worker_id| identifies the EmbeddedWorkerInstance. |
251 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_SetVersionId, | 252 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_SetVersionId, |
252 int /* provider_id */, | 253 int /* provider_id */, |
253 int64_t /* version_id */, | 254 int64_t /* version_id */, |
254 int /* embedded_worker_id */) | 255 int /* embedded_worker_id */) |
255 | 256 |
256 // Informs the browser that event handling has finished. | 257 // Informs the browser that event handling has finished. |
257 // Routed to the target ServiceWorkerVersion. | 258 // Routed to the target ServiceWorkerVersion. |
258 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_InstallEventFinished, | 259 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_InstallEventFinished, |
259 int /* request_id */, | 260 int /* request_id */, |
260 blink::WebServiceWorkerEventResult, | 261 blink::WebServiceWorkerEventResult, |
261 bool /* has_fetch_event_handler */) | 262 bool /* has_fetch_event_handler */, |
| 263 base::Time /* dispatch_event_time */) |
262 | 264 |
263 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_ActivateEventFinished, | 265 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_ActivateEventFinished, |
264 int /* request_id */, | 266 int /* request_id */, |
265 blink::WebServiceWorkerEventResult) | 267 blink::WebServiceWorkerEventResult, |
266 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_ExtendableMessageEventFinished, | 268 base::Time /* dispatch_event_time */) |
| 269 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_ExtendableMessageEventFinished, |
267 int /* request_id */, | 270 int /* request_id */, |
268 blink::WebServiceWorkerEventResult) | 271 blink::WebServiceWorkerEventResult, |
269 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventResponse, | 272 base::Time /* dispatch_event_time */) |
| 273 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_FetchEventResponse, |
270 int /* response_id */, | 274 int /* response_id */, |
271 content::ServiceWorkerFetchEventResult, | 275 content::ServiceWorkerFetchEventResult, |
272 content::ServiceWorkerResponse) | 276 content::ServiceWorkerResponse, |
273 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FetchEventFinished, | 277 base::Time /* dispatch_event_time */) |
| 278 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventFinished, |
274 int /* event_finish_id */, | 279 int /* event_finish_id */, |
275 blink::WebServiceWorkerEventResult) | 280 blink::WebServiceWorkerEventResult, |
276 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_NotificationClickEventFinished, | 281 base::Time /* dispatch_event_time */) |
| 282 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_NotificationClickEventFinished, |
277 int /* request_id */, | 283 int /* request_id */, |
278 blink::WebServiceWorkerEventResult) | 284 blink::WebServiceWorkerEventResult, |
279 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_NotificationCloseEventFinished, | 285 base::Time /* dispatch_event_time */) |
| 286 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_NotificationCloseEventFinished, |
280 int /* request_id */, | 287 int /* request_id */, |
281 blink::WebServiceWorkerEventResult) | 288 blink::WebServiceWorkerEventResult, |
282 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, | 289 base::Time /* dispatch_event_time */) |
| 290 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PushEventFinished, |
283 int /* request_id */, | 291 int /* request_id */, |
284 blink::WebServiceWorkerEventResult) | 292 blink::WebServiceWorkerEventResult, |
| 293 base::Time /* dispatch_event_time */) |
285 | 294 |
286 // Responds to a Ping from the browser. | 295 // Responds to a Ping from the browser. |
287 // Routed to the target ServiceWorkerVersion. | 296 // Routed to the target ServiceWorkerVersion. |
288 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) | 297 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) |
289 | 298 |
290 // Asks the browser to retrieve client of the sender ServiceWorker. | 299 // Asks the browser to retrieve client of the sender ServiceWorker. |
291 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient, | 300 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient, |
292 int /* request_id */, | 301 int /* request_id */, |
293 std::string /* client_uuid */) | 302 std::string /* client_uuid */) |
294 | 303 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 547 |
539 // Sent via EmbeddedWorker as a response of NavigateClient. | 548 // Sent via EmbeddedWorker as a response of NavigateClient. |
540 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 549 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
541 int /* request_id */, | 550 int /* request_id */, |
542 content::ServiceWorkerClientInfo /* client */) | 551 content::ServiceWorkerClientInfo /* client */) |
543 | 552 |
544 // Sent via EmbeddedWorker as an error response of NavigateClient. | 553 // Sent via EmbeddedWorker as an error response of NavigateClient. |
545 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 554 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
546 int /* request_id */, | 555 int /* request_id */, |
547 GURL /* url */) | 556 GURL /* url */) |
OLD | NEW |