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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 // Informs the browser of a new ServiceWorkerProvider in the child process, | 75 // Informs the browser of a new ServiceWorkerProvider in the child process, |
76 // |provider_id| is unique within its child process. | 76 // |provider_id| is unique within its child process. |
77 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, | 77 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, |
78 int /* provider_id */) | 78 int /* provider_id */) |
79 | 79 |
80 // Informs the browser of a ServiceWorkerProvider being destroyed. | 80 // Informs the browser of a ServiceWorkerProvider being destroyed. |
81 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 81 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
82 int /* provider_id */) | 82 int /* provider_id */) |
83 | 83 |
84 // Informs the browser of a ServiceWorker object being destroyed. | 84 // Increments and decrements the ServiceWorker object's reference |
85 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ServiceWorkerObjectDestroyed, | 85 // counting in the browser side. The ServiceWorker object is created |
| 86 // with ref-count==1 initially. |
| 87 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, |
| 88 int /* handle_id */) |
| 89 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementServiceWorkerRefCount, |
86 int /* handle_id */) | 90 int /* handle_id */) |
87 | 91 |
88 // Informs the browser that |provider_id| is associated | 92 // Informs the browser that |provider_id| is associated |
89 // with a service worker script running context and | 93 // with a service worker script running context and |
90 // |version_id| identifies which ServcieWorkerVersion. | 94 // |version_id| identifies which ServcieWorkerVersion. |
91 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId, | 95 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId, |
92 int /* provider_id */, | 96 int /* provider_id */, |
93 int64 /* version_id */) | 97 int64 /* version_id */) |
94 | 98 |
95 // Informs the browser of a new scriptable API client in the child process. | |
96 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient, | |
97 int /* thread_id */, | |
98 int /* provider_id */) | |
99 | |
100 // Informs the browser that the scriptable API client is unregistered. | |
101 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient, | |
102 int /* thread_id */, | |
103 int /* provider_id */) | |
104 | |
105 // Informs the browser that event handling has finished. | 99 // Informs the browser that event handling has finished. |
106 // Routed to the target ServiceWorkerVersion. | 100 // Routed to the target ServiceWorkerVersion. |
107 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_InstallEventFinished, | 101 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_InstallEventFinished, |
108 int /* request_id */, | 102 int /* request_id */, |
109 blink::WebServiceWorkerEventResult) | 103 blink::WebServiceWorkerEventResult) |
110 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_ActivateEventFinished, | 104 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_ActivateEventFinished, |
111 int /* request_id */, | 105 int /* request_id */, |
112 blink::WebServiceWorkerEventResult); | 106 blink::WebServiceWorkerEventResult); |
113 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventFinished, | 107 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventFinished, |
114 int /* request_id */, | 108 int /* request_id */, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 int /* request_id */) | 169 int /* request_id */) |
176 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, | 170 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, |
177 base::string16 /* message */, | 171 base::string16 /* message */, |
178 std::vector<int> /* sent_message_port_ids */, | 172 std::vector<int> /* sent_message_port_ids */, |
179 std::vector<int> /* new_routing_ids */) | 173 std::vector<int> /* new_routing_ids */) |
180 | 174 |
181 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 175 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
182 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 176 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
183 int /* request_id */, | 177 int /* request_id */, |
184 std::vector<int> /* client_ids */) | 178 std::vector<int> /* client_ids */) |
OLD | NEW |