| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // RegisterServiceWorker / UnregisterServiceWorker handler above. | 76 // RegisterServiceWorker / UnregisterServiceWorker handler above. |
| 77 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 77 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
| 78 int32 /* thread_id */, | 78 int32 /* thread_id */, |
| 79 int32 /* request_id */, | 79 int32 /* request_id */, |
| 80 blink::WebServiceWorkerError::ErrorType /* code */, | 80 blink::WebServiceWorkerError::ErrorType /* code */, |
| 81 base::string16 /* message */) | 81 base::string16 /* message */) |
| 82 | 82 |
| 83 // Sent via EmbeddedWorker to dispatch install event. | 83 // Sent via EmbeddedWorker to dispatch install event. |
| 84 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, int /* active_version_id */) | 84 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, int /* active_version_id */) |
| 85 | 85 |
| 86 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_ActivateEvent) |
| 87 |
| 86 // Sent via EmbeddedWorker to dispatch fetch event. | 88 // Sent via EmbeddedWorker to dispatch fetch event. |
| 87 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent, | 89 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent, |
| 88 content::ServiceWorkerFetchRequest) | 90 content::ServiceWorkerFetchRequest) |
| 89 | 91 |
| 90 // Sends a 'message' event to a service worker (browser->EmbeddedWorker). | 92 // Sends a 'message' event to a service worker (browser->EmbeddedWorker). |
| 91 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, | 93 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, |
| 92 base::string16 /* message */, | 94 base::string16 /* message */, |
| 93 std::vector<int> /* sent_message_port_ids */, | 95 std::vector<int> /* sent_message_port_ids */, |
| 94 std::vector<int> /* new_routing_ids */) | 96 std::vector<int> /* new_routing_ids */) |
| 95 | 97 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 110 // Informs the browser that the scriptable API client is unregistered. | 112 // Informs the browser that the scriptable API client is unregistered. |
| 111 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient, | 113 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient, |
| 112 int /* thread_id */, | 114 int /* thread_id */, |
| 113 int /* provider_id */) | 115 int /* provider_id */) |
| 114 | 116 |
| 115 // Informs the browser that install event handling has finished. | 117 // Informs the browser that install event handling has finished. |
| 116 // Sent via EmbeddedWorker. | 118 // Sent via EmbeddedWorker. |
| 117 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_InstallEventFinished, | 119 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_InstallEventFinished, |
| 118 blink::WebServiceWorkerEventResult) | 120 blink::WebServiceWorkerEventResult) |
| 119 | 121 |
| 122 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ActivateEventFinished, |
| 123 blink::WebServiceWorkerEventResult); |
| 124 |
| 120 // Informs the browser that fetch event handling has finished. | 125 // Informs the browser that fetch event handling has finished. |
| 121 // Sent via EmbeddedWorker. | 126 // Sent via EmbeddedWorker. |
| 122 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, | 127 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, |
| 123 content::ServiceWorkerFetchEventResult, | 128 content::ServiceWorkerFetchEventResult, |
| 124 content::ServiceWorkerResponse) | 129 content::ServiceWorkerResponse) |
| OLD | NEW |