| 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_status_code.h" | 8 #include "content/common/service_worker/service_worker_status_code.h" |
| 9 #include "content/common/service_worker/service_worker_types.h" | 9 #include "content/common/service_worker/service_worker_types.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 int /* request_id */, | 148 int /* request_id */, |
| 149 blink::WebServiceWorkerError::ErrorType /* code */, | 149 blink::WebServiceWorkerError::ErrorType /* code */, |
| 150 base::string16 /* message */) | 150 base::string16 /* message */) |
| 151 | 151 |
| 152 // Informs the child process that the ServiceWorker's state has changed. | 152 // Informs the child process that the ServiceWorker's state has changed. |
| 153 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, | 153 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, |
| 154 int /* thread_id */, | 154 int /* thread_id */, |
| 155 int /* handle_id */, | 155 int /* handle_id */, |
| 156 blink::WebServiceWorkerState) | 156 blink::WebServiceWorkerState) |
| 157 | 157 |
| 158 // Tells the child process to set the waiting ServiceWorker for the given |
| 159 // provider. |
| 160 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetWaitingServiceWorker, |
| 161 int /* thread_id */, |
| 162 int /* provider_id */, |
| 163 content::ServiceWorkerObjectInfo) |
| 164 |
| 158 // Tells the child process to set the current ServiceWorker for the given | 165 // Tells the child process to set the current ServiceWorker for the given |
| 159 // provider. | 166 // provider. |
| 160 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetCurrentServiceWorker, | 167 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetCurrentServiceWorker, |
| 161 int /* thread_id */, | 168 int /* thread_id */, |
| 162 int /* provider_id */, | 169 int /* provider_id */, |
| 163 content::ServiceWorkerObjectInfo) | 170 content::ServiceWorkerObjectInfo) |
| 164 | 171 |
| 165 // Sends a 'message' event to a client document (browser->renderer). | 172 // Sends a 'message' event to a client document (browser->renderer). |
| 166 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, | 173 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, |
| 167 int /* thread_id */, | 174 int /* thread_id */, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 183 int /* request_id */) | 190 int /* request_id */) |
| 184 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, | 191 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, |
| 185 base::string16 /* message */, | 192 base::string16 /* message */, |
| 186 std::vector<int> /* sent_message_port_ids */, | 193 std::vector<int> /* sent_message_port_ids */, |
| 187 std::vector<int> /* new_routing_ids */) | 194 std::vector<int> /* new_routing_ids */) |
| 188 | 195 |
| 189 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 196 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
| 190 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 197 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
| 191 int /* request_id */, | 198 int /* request_id */, |
| 192 std::vector<int> /* client_ids */) | 199 std::vector<int> /* client_ids */) |
| OLD | NEW |