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