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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Informs the browser of a new ServiceWorkerProvider in the child process, | 64 // Informs the browser of a new ServiceWorkerProvider in the child process, |
65 // |provider_id| is unique within its child process. | 65 // |provider_id| is unique within its child process. |
66 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, | 66 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, |
67 int /* provider_id */) | 67 int /* provider_id */) |
68 | 68 |
69 // Informs the browser of a ServiceWorkerProvider being destroyed. | 69 // Informs the browser of a ServiceWorkerProvider being destroyed. |
70 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 70 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
71 int /* provider_id */) | 71 int /* provider_id */) |
72 | 72 |
| 73 // Informs the browser of a ServiceWorker object being destroyed. |
| 74 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ServiceWorkerObjectDestroyed, |
| 75 int /* handle_id */) |
| 76 |
73 // Informs the browser that |provider_id| is associated | 77 // Informs the browser that |provider_id| is associated |
74 // with a service worker script running context and | 78 // with a service worker script running context and |
75 // |version_id| identifies which ServcieWorkerVersion. | 79 // |version_id| identifies which ServcieWorkerVersion. |
76 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId, | 80 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId, |
77 int /* provider_id */, | 81 int /* provider_id */, |
78 int64 /* version_id */) | 82 int64 /* version_id */) |
79 | 83 |
80 // Informs the browser of a new scriptable API client in the child process. | 84 // Informs the browser of a new scriptable API client in the child process. |
81 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient, | 85 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient, |
82 int /* thread_id */, | 86 int /* thread_id */, |
(...skipping 17 matching lines...) Expand all Loading... |
100 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, | 104 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, |
101 content::ServiceWorkerFetchEventResult, | 105 content::ServiceWorkerFetchEventResult, |
102 content::ServiceWorkerResponse) | 106 content::ServiceWorkerResponse) |
103 | 107 |
104 // Messages sent from the browser to the child process. | 108 // Messages sent from the browser to the child process. |
105 | 109 |
106 // Response to ServiceWorkerMsg_RegisterServiceWorker | 110 // Response to ServiceWorkerMsg_RegisterServiceWorker |
107 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, | 111 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, |
108 int /* thread_id */, | 112 int /* thread_id */, |
109 int /* request_id */, | 113 int /* request_id */, |
110 int64 /* registration_id */, | 114 int /* handle_id */, |
111 int64 /* version_id */) | 115 int64 /* version_id */) |
112 | 116 |
113 // Response to ServiceWorkerMsg_UnregisterServiceWorker | 117 // Response to ServiceWorkerMsg_UnregisterServiceWorker |
114 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, | 118 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, |
115 int /* thread_id */, | 119 int /* thread_id */, |
116 int /* request_id */) | 120 int /* request_id */) |
117 | 121 |
118 // Sent when any kind of registration error occurs during a | 122 // Sent when any kind of registration error occurs during a |
119 // RegisterServiceWorker / UnregisterServiceWorker handler above. | 123 // RegisterServiceWorker / UnregisterServiceWorker handler above. |
120 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 124 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
(...skipping 15 matching lines...) Expand all Loading... |
136 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, | 140 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, |
137 base::string16 /* message */, | 141 base::string16 /* message */, |
138 std::vector<int> /* sent_message_port_ids */, | 142 std::vector<int> /* sent_message_port_ids */, |
139 std::vector<int> /* new_routing_ids */) | 143 std::vector<int> /* new_routing_ids */) |
140 | 144 |
141 // Sent via EmbeddedWorker to dispatch sync event. | 145 // Sent via EmbeddedWorker to dispatch sync event. |
142 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_SyncEvent) | 146 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_SyncEvent) |
143 | 147 |
144 // Informs the browser that sync event handling has finished. | 148 // Informs the browser that sync event handling has finished. |
145 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_SyncEventFinished) | 149 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_SyncEventFinished) |
OLD | NEW |