| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 int /* provider_id */, | 165 int /* provider_id */, |
| 166 content::ServiceWorkerObjectInfo) | 166 content::ServiceWorkerObjectInfo) |
| 167 | 167 |
| 168 // Tells the child process to set the waiting ServiceWorker for the given | 168 // Tells the child process to set the waiting ServiceWorker for the given |
| 169 // provider. | 169 // provider. |
| 170 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetWaitingServiceWorker, | 170 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetWaitingServiceWorker, |
| 171 int /* thread_id */, | 171 int /* thread_id */, |
| 172 int /* provider_id */, | 172 int /* provider_id */, |
| 173 content::ServiceWorkerObjectInfo) | 173 content::ServiceWorkerObjectInfo) |
| 174 | 174 |
| 175 // Tells the child process to set the active ServiceWorker for the given |
| 176 // provider. |
| 177 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetActiveServiceWorker, |
| 178 int /* thread_id */, |
| 179 int /* provider_id */, |
| 180 content::ServiceWorkerObjectInfo) |
| 181 |
| 175 // Tells the child process to set the controller ServiceWorker for the given | 182 // Tells the child process to set the controller ServiceWorker for the given |
| 176 // provider. | 183 // provider. |
| 177 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetControllerServiceWorker, | 184 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetControllerServiceWorker, |
| 178 int /* thread_id */, | 185 int /* thread_id */, |
| 179 int /* provider_id */, | 186 int /* provider_id */, |
| 180 content::ServiceWorkerObjectInfo) | 187 content::ServiceWorkerObjectInfo) |
| 181 | 188 |
| 182 // Sends a 'message' event to a client document (browser->renderer). | 189 // Sends a 'message' event to a client document (browser->renderer). |
| 183 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, | 190 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, |
| 184 int /* thread_id */, | 191 int /* thread_id */, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 203 std::string /* data */) | 210 std::string /* data */) |
| 204 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, | 211 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, |
| 205 base::string16 /* message */, | 212 base::string16 /* message */, |
| 206 std::vector<int> /* sent_message_port_ids */, | 213 std::vector<int> /* sent_message_port_ids */, |
| 207 std::vector<int> /* new_routing_ids */) | 214 std::vector<int> /* new_routing_ids */) |
| 208 | 215 |
| 209 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 216 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
| 210 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 217 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
| 211 int /* request_id */, | 218 int /* request_id */, |
| 212 std::vector<int> /* client_ids */) | 219 std::vector<int> /* client_ids */) |
| OLD | NEW |