| 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> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) | 103 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) |
| 104 IPC_STRUCT_TRAITS_MEMBER(handle_id) | 104 IPC_STRUCT_TRAITS_MEMBER(handle_id) |
| 105 IPC_STRUCT_TRAITS_MEMBER(url) | 105 IPC_STRUCT_TRAITS_MEMBER(url) |
| 106 IPC_STRUCT_TRAITS_MEMBER(state) | 106 IPC_STRUCT_TRAITS_MEMBER(state) |
| 107 IPC_STRUCT_TRAITS_MEMBER(version_id) | 107 IPC_STRUCT_TRAITS_MEMBER(version_id) |
| 108 IPC_STRUCT_TRAITS_END() | 108 IPC_STRUCT_TRAITS_END() |
| 109 | 109 |
| 110 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationObjectInfo) | 110 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationObjectInfo) |
| 111 IPC_STRUCT_TRAITS_MEMBER(handle_id) | 111 IPC_STRUCT_TRAITS_MEMBER(handle_id) |
| 112 IPC_STRUCT_TRAITS_MEMBER(scope) | 112 IPC_STRUCT_TRAITS_MEMBER(scope) |
| 113 IPC_STRUCT_TRAITS_MEMBER(use_cache) |
| 113 IPC_STRUCT_TRAITS_MEMBER(registration_id) | 114 IPC_STRUCT_TRAITS_MEMBER(registration_id) |
| 114 IPC_STRUCT_TRAITS_END() | 115 IPC_STRUCT_TRAITS_END() |
| 115 | 116 |
| 117 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationAttributes) |
| 118 IPC_STRUCT_TRAITS_MEMBER(pattern) |
| 119 IPC_STRUCT_TRAITS_MEMBER(script_url) |
| 120 IPC_STRUCT_TRAITS_MEMBER(use_cache) |
| 121 IPC_STRUCT_TRAITS_END() |
| 122 |
| 116 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) | 123 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) |
| 117 IPC_STRUCT_TRAITS_MEMBER(installing) | 124 IPC_STRUCT_TRAITS_MEMBER(installing) |
| 118 IPC_STRUCT_TRAITS_MEMBER(waiting) | 125 IPC_STRUCT_TRAITS_MEMBER(waiting) |
| 119 IPC_STRUCT_TRAITS_MEMBER(active) | 126 IPC_STRUCT_TRAITS_MEMBER(active) |
| 120 IPC_STRUCT_TRAITS_END() | 127 IPC_STRUCT_TRAITS_END() |
| 121 | 128 |
| 122 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) | 129 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) |
| 123 IPC_STRUCT_TRAITS_MEMBER(client_uuid) | 130 IPC_STRUCT_TRAITS_MEMBER(client_uuid) |
| 124 IPC_STRUCT_TRAITS_MEMBER(page_visibility_state) | 131 IPC_STRUCT_TRAITS_MEMBER(page_visibility_state) |
| 125 IPC_STRUCT_TRAITS_MEMBER(is_focused) | 132 IPC_STRUCT_TRAITS_MEMBER(is_focused) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 142 IPC_STRUCT_END() | 149 IPC_STRUCT_END() |
| 143 | 150 |
| 144 IPC_STRUCT_TRAITS_BEGIN(content::PushEventPayload) | 151 IPC_STRUCT_TRAITS_BEGIN(content::PushEventPayload) |
| 145 IPC_STRUCT_TRAITS_MEMBER(data) | 152 IPC_STRUCT_TRAITS_MEMBER(data) |
| 146 IPC_STRUCT_TRAITS_MEMBER(is_null) | 153 IPC_STRUCT_TRAITS_MEMBER(is_null) |
| 147 IPC_STRUCT_TRAITS_END() | 154 IPC_STRUCT_TRAITS_END() |
| 148 | 155 |
| 149 //--------------------------------------------------------------------------- | 156 //--------------------------------------------------------------------------- |
| 150 // Messages sent from the child process to the browser. | 157 // Messages sent from the child process to the browser. |
| 151 | 158 |
| 152 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, | 159 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker, |
| 153 int /* thread_id */, | 160 int /* thread_id */, |
| 154 int /* request_id */, | 161 int /* request_id */, |
| 155 int /* provider_id */, | 162 int /* provider_id */, |
| 156 GURL /* scope */, | 163 content::ServiceWorkerRegistrationAttributes) |
| 157 GURL /* script_url */) | |
| 158 | 164 |
| 159 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UpdateServiceWorker, | 165 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UpdateServiceWorker, |
| 160 int /* thread_id */, | 166 int /* thread_id */, |
| 161 int /* request_id */, | 167 int /* request_id */, |
| 162 int /* provider_id */, | 168 int /* provider_id */, |
| 163 int64_t /* registration_id */) | 169 int64_t /* registration_id */) |
| 164 | 170 |
| 165 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, | 171 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, |
| 166 int /* thread_id */, | 172 int /* thread_id */, |
| 167 int /* request_id */, | 173 int /* request_id */, |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 | 519 |
| 514 // Sent via EmbeddedWorker as a response of NavigateClient. | 520 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 515 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 521 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 516 int /* request_id */, | 522 int /* request_id */, |
| 517 content::ServiceWorkerClientInfo /* client */) | 523 content::ServiceWorkerClientInfo /* client */) |
| 518 | 524 |
| 519 // Sent via EmbeddedWorker as an error response of NavigateClient. | 525 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 520 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 526 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 521 int /* request_id */, | 527 int /* request_id */, |
| 522 GURL /* url */) | 528 GURL /* url */) |
| OLD | NEW |