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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 blink::WebServiceWorkerEventResult) | 103 blink::WebServiceWorkerEventResult) |
104 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_ActivateEventFinished, | 104 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_ActivateEventFinished, |
105 int /* request_id */, | 105 int /* request_id */, |
106 blink::WebServiceWorkerEventResult); | 106 blink::WebServiceWorkerEventResult); |
107 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventFinished, | 107 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventFinished, |
108 int /* request_id */, | 108 int /* request_id */, |
109 content::ServiceWorkerFetchEventResult, | 109 content::ServiceWorkerFetchEventResult, |
110 content::ServiceWorkerResponse) | 110 content::ServiceWorkerResponse) |
111 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SyncEventFinished, | 111 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SyncEventFinished, |
112 int /* request_id */) | 112 int /* request_id */) |
| 113 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_PushEventFinished, |
| 114 int /* request_id */) |
113 | 115 |
114 // Asks the browser to retrieve documents controlled by the sender | 116 // Asks the browser to retrieve documents controlled by the sender |
115 // ServiceWorker. | 117 // ServiceWorker. |
116 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, | 118 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, |
117 int /* request_id */) | 119 int /* request_id */) |
118 | 120 |
119 // Sends a 'message' event to a client document (renderer->browser). | 121 // Sends a 'message' event to a client document (renderer->browser). |
120 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 122 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
121 int /* client_id */, | 123 int /* client_id */, |
122 base::string16 /* message */, | 124 base::string16 /* message */, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, | 176 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, |
175 int /* request_id */, | 177 int /* request_id */, |
176 int /* active_version_id */) | 178 int /* active_version_id */) |
177 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 179 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
178 int /* request_id */) | 180 int /* request_id */) |
179 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 181 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
180 int /* request_id */, | 182 int /* request_id */, |
181 content::ServiceWorkerFetchRequest) | 183 content::ServiceWorkerFetchRequest) |
182 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, | 184 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, |
183 int /* request_id */) | 185 int /* request_id */) |
| 186 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent, |
| 187 int /* request_id */, |
| 188 std::string /* data */) |
184 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, | 189 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, |
185 base::string16 /* message */, | 190 base::string16 /* message */, |
186 std::vector<int> /* sent_message_port_ids */, | 191 std::vector<int> /* sent_message_port_ids */, |
187 std::vector<int> /* new_routing_ids */) | 192 std::vector<int> /* new_routing_ids */) |
188 | 193 |
189 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 194 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
190 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 195 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
191 int /* request_id */, | 196 int /* request_id */, |
192 std::vector<int> /* client_ids */) | 197 std::vector<int> /* client_ids */) |
OLD | NEW |