| 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 "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "content/common/service_worker/service_worker_types.h" | 8 #include "content/common/service_worker/service_worker_types.h" |
| 9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "ipc/ipc_param_traits.h" | 10 #include "ipc/ipc_param_traits.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 IPC_ENUM_TRAITS(content::ServiceWorkerEventCompleteStatus) | 22 IPC_ENUM_TRAITS(content::ServiceWorkerEventCompleteStatus) |
| 23 | 23 |
| 24 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) | 24 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) |
| 25 IPC_STRUCT_TRAITS_MEMBER(url) | 25 IPC_STRUCT_TRAITS_MEMBER(url) |
| 26 IPC_STRUCT_TRAITS_MEMBER(method) | 26 IPC_STRUCT_TRAITS_MEMBER(method) |
| 27 IPC_STRUCT_TRAITS_MEMBER(headers) | 27 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 28 IPC_STRUCT_TRAITS_END() | 28 IPC_STRUCT_TRAITS_END() |
| 29 | 29 |
| 30 // Messages sent from the child process to the browser. | 30 // Messages sent from the child process to the browser. |
| 31 | 31 |
| 32 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker, | 32 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, |
| 33 int32 /* thread_id */, | 33 int32 /* thread_id */, |
| 34 int32 /* request_id */, | 34 int32 /* request_id */, |
| 35 int /* provider_id */, |
| 35 GURL /* scope */, | 36 GURL /* scope */, |
| 36 GURL /* script_url */) | 37 GURL /* script_url */) |
| 37 | 38 |
| 38 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker, | 39 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, |
| 39 int32 /* thread_id */, | 40 int32 /* thread_id */, |
| 40 int32 /* request_id */, | 41 int32 /* request_id */, |
| 42 int /* provider_id */, |
| 41 GURL /* scope (url pattern) */) | 43 GURL /* scope (url pattern) */) |
| 42 | 44 |
| 43 // Messages sent from the browser to the child process. | 45 // Messages sent from the browser to the child process. |
| 44 | 46 |
| 45 // Response to ServiceWorkerMsg_RegisterServiceWorker | 47 // Response to ServiceWorkerMsg_RegisterServiceWorker |
| 46 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, | 48 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, |
| 47 int32 /* thread_id */, | 49 int32 /* thread_id */, |
| 48 int32 /* request_id */, | 50 int32 /* request_id */, |
| 49 int64 /* service_worker_id */) | 51 int64 /* service_worker_id */) |
| 50 | 52 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 77 int /* provider_id */) | 79 int /* provider_id */) |
| 78 | 80 |
| 79 // Informs the browser of a ServiceWorkerProvider being destroyed. | 81 // Informs the browser of a ServiceWorkerProvider being destroyed. |
| 80 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 82 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
| 81 int /* provider_id */) | 83 int /* provider_id */) |
| 82 | 84 |
| 83 // Informs the browser that oninstall handle is completed. | 85 // Informs the browser that oninstall handle is completed. |
| 84 // Sent via EmbeddedWorker. | 86 // Sent via EmbeddedWorker. |
| 85 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_InstallCompleted, | 87 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_InstallCompleted, |
| 86 content::ServiceWorkerEventCompleteStatus) | 88 content::ServiceWorkerEventCompleteStatus) |
| OLD | NEW |