| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // Informs the browser that the scriptable API client is unregistered. | 83 // Informs the browser that the scriptable API client is unregistered. |
| 84 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient, | 84 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient, |
| 85 int /* thread_id */, | 85 int /* thread_id */, |
| 86 int /* provider_id */) | 86 int /* provider_id */) |
| 87 | 87 |
| 88 // Informs the browser that install event handling has finished. | 88 // Informs the browser that install event handling has finished. |
| 89 // Sent via EmbeddedWorker. | 89 // Sent via EmbeddedWorker. |
| 90 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_InstallEventFinished, | 90 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_InstallEventFinished, |
| 91 blink::WebServiceWorkerEventResult) | 91 blink::WebServiceWorkerEventResult) |
| 92 | 92 |
| 93 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ActivateEventFinished, |
| 94 blink::WebServiceWorkerEventResult); |
| 95 |
| 93 // Informs the browser that fetch event handling has finished. | 96 // Informs the browser that fetch event handling has finished. |
| 94 // Sent via EmbeddedWorker. | 97 // Sent via EmbeddedWorker. |
| 95 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, | 98 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, |
| 96 content::ServiceWorkerFetchEventResult, | 99 content::ServiceWorkerFetchEventResult, |
| 97 content::ServiceWorkerResponse) | 100 content::ServiceWorkerResponse) |
| 98 | 101 |
| 99 // Messages sent from the browser to the child process. | 102 // Messages sent from the browser to the child process. |
| 100 | 103 |
| 101 // Response to ServiceWorkerMsg_RegisterServiceWorker | 104 // Response to ServiceWorkerMsg_RegisterServiceWorker |
| 102 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, | 105 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 113 // RegisterServiceWorker / UnregisterServiceWorker handler above. | 116 // RegisterServiceWorker / UnregisterServiceWorker handler above. |
| 114 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 117 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
| 115 int32 /* thread_id */, | 118 int32 /* thread_id */, |
| 116 int32 /* request_id */, | 119 int32 /* request_id */, |
| 117 blink::WebServiceWorkerError::ErrorType /* code */, | 120 blink::WebServiceWorkerError::ErrorType /* code */, |
| 118 base::string16 /* message */) | 121 base::string16 /* message */) |
| 119 | 122 |
| 120 // Sent via EmbeddedWorker to dispatch install event. | 123 // Sent via EmbeddedWorker to dispatch install event. |
| 121 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, int /* active_version_id */) | 124 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, int /* active_version_id */) |
| 122 | 125 |
| 126 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_ActivateEvent) |
| 127 |
| 123 // Sent via EmbeddedWorker to dispatch fetch event. | 128 // Sent via EmbeddedWorker to dispatch fetch event. |
| 124 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent, | 129 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent, |
| 125 content::ServiceWorkerFetchRequest) | 130 content::ServiceWorkerFetchRequest) |
| 126 | 131 |
| 127 // Sends a 'message' event to a service worker (browser->EmbeddedWorker). | 132 // Sends a 'message' event to a service worker (browser->EmbeddedWorker). |
| 128 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, | 133 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, |
| 129 base::string16 /* message */, | 134 base::string16 /* message */, |
| 130 std::vector<int> /* sent_message_port_ids */, | 135 std::vector<int> /* sent_message_port_ids */, |
| 131 std::vector<int> /* new_routing_ids */) | 136 std::vector<int> /* new_routing_ids */) |
| 132 | 137 |
| OLD | NEW |