| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 IPC_STRUCT_TRAITS_MEMBER(cors_exposed_header_names) | 100 IPC_STRUCT_TRAITS_MEMBER(cors_exposed_header_names) |
| 101 IPC_STRUCT_TRAITS_END() | 101 IPC_STRUCT_TRAITS_END() |
| 102 | 102 |
| 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_ENUM_TRAITS_MAX_VALUE( |
| 111 content::ServiceWorkerRegistrationOptions::UseCache, |
| 112 content::ServiceWorkerRegistrationOptions::UseCache::Last) |
| 113 |
| 114 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationOptions) |
| 115 IPC_STRUCT_TRAITS_MEMBER(scope) |
| 116 IPC_STRUCT_TRAITS_MEMBER(use_cache) |
| 117 IPC_STRUCT_TRAITS_END() |
| 118 |
| 110 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationObjectInfo) | 119 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationObjectInfo) |
| 111 IPC_STRUCT_TRAITS_MEMBER(handle_id) | 120 IPC_STRUCT_TRAITS_MEMBER(handle_id) |
| 112 IPC_STRUCT_TRAITS_MEMBER(scope) | 121 IPC_STRUCT_TRAITS_MEMBER(options) |
| 113 IPC_STRUCT_TRAITS_MEMBER(registration_id) | 122 IPC_STRUCT_TRAITS_MEMBER(registration_id) |
| 114 IPC_STRUCT_TRAITS_END() | 123 IPC_STRUCT_TRAITS_END() |
| 115 | 124 |
| 116 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) | 125 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) |
| 117 IPC_STRUCT_TRAITS_MEMBER(installing) | 126 IPC_STRUCT_TRAITS_MEMBER(installing) |
| 118 IPC_STRUCT_TRAITS_MEMBER(waiting) | 127 IPC_STRUCT_TRAITS_MEMBER(waiting) |
| 119 IPC_STRUCT_TRAITS_MEMBER(active) | 128 IPC_STRUCT_TRAITS_MEMBER(active) |
| 120 IPC_STRUCT_TRAITS_END() | 129 IPC_STRUCT_TRAITS_END() |
| 121 | 130 |
| 122 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) | 131 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 146 IPC_STRUCT_TRAITS_MEMBER(is_null) | 155 IPC_STRUCT_TRAITS_MEMBER(is_null) |
| 147 IPC_STRUCT_TRAITS_END() | 156 IPC_STRUCT_TRAITS_END() |
| 148 | 157 |
| 149 //--------------------------------------------------------------------------- | 158 //--------------------------------------------------------------------------- |
| 150 // Messages sent from the child process to the browser. | 159 // Messages sent from the child process to the browser. |
| 151 | 160 |
| 152 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, | 161 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, |
| 153 int /* thread_id */, | 162 int /* thread_id */, |
| 154 int /* request_id */, | 163 int /* request_id */, |
| 155 int /* provider_id */, | 164 int /* provider_id */, |
| 156 GURL /* scope */, | 165 GURL /* script_url */, |
| 157 GURL /* script_url */) | 166 content::ServiceWorkerRegistrationOptions) |
| 158 | 167 |
| 159 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UpdateServiceWorker, | 168 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UpdateServiceWorker, |
| 160 int /* thread_id */, | 169 int /* thread_id */, |
| 161 int /* request_id */, | 170 int /* request_id */, |
| 162 int /* provider_id */, | 171 int /* provider_id */, |
| 163 int64_t /* registration_id */) | 172 int64_t /* registration_id */) |
| 164 | 173 |
| 165 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, | 174 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, |
| 166 int /* thread_id */, | 175 int /* thread_id */, |
| 167 int /* request_id */, | 176 int /* request_id */, |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 | 522 |
| 514 // Sent via EmbeddedWorker as a response of NavigateClient. | 523 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 515 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 524 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 516 int /* request_id */, | 525 int /* request_id */, |
| 517 content::ServiceWorkerClientInfo /* client */) | 526 content::ServiceWorkerClientInfo /* client */) |
| 518 | 527 |
| 519 // Sent via EmbeddedWorker as an error response of NavigateClient. | 528 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 520 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 529 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 521 int /* request_id */, | 530 int /* request_id */, |
| 522 GURL /* url */) | 531 GURL /* url */) |
| OLD | NEW |