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 <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 | 143 |
144 // Sends a 'message' event to a service worker (renderer->browser). | 144 // Sends a 'message' event to a service worker (renderer->browser). |
145 IPC_MESSAGE_CONTROL3( | 145 IPC_MESSAGE_CONTROL3( |
146 ServiceWorkerHostMsg_PostMessageToWorker, | 146 ServiceWorkerHostMsg_PostMessageToWorker, |
147 int /* handle_id */, | 147 int /* handle_id */, |
148 base::string16 /* message */, | 148 base::string16 /* message */, |
149 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 149 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
150 | 150 |
151 // Informs the browser of a new ServiceWorkerProvider in the child process, | 151 // Informs the browser of a new ServiceWorkerProvider in the child process, |
152 // |provider_id| is unique within its child process. | 152 // |provider_id| is unique within its child process. |
153 // |render_frame_id| identifies the frame associated with the provider, it will | 153 // When the context is a Document, |route_id| is the frame ID of it. When the |
dcheng
2015/06/17 02:57:30
What does "context" mean here?
horo
2015/06/17 07:37:05
"context" means "for what the provider was created
| |
154 // it will be MSG_ROUTING_NONE if the context is a worker instead of a document. | 154 // context is a Shared Worker, |route_id| is the Shared Worker route ID. When |
155 // the context is a Service Worker, |route_id| is MSG_ROUTING_NONE. | |
155 // |provider_type| identifies whether this provider is for ServiceWorker | 156 // |provider_type| identifies whether this provider is for ServiceWorker |
156 // controllees (documents and SharedWorkers) or for controllers | 157 // controllees (documents and SharedWorkers) or for controllers |
157 // (ServiceWorkers). | 158 // (ServiceWorkers). |
158 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, | 159 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, |
159 int /* provider_id */, | 160 int /* provider_id */, |
160 int /* render_frame_id */, | 161 int /* route_id */, |
161 content::ServiceWorkerProviderType /* provider_type */) | 162 content::ServiceWorkerProviderType /* provider_type */) |
162 | 163 |
163 // Informs the browser of a ServiceWorkerProvider being destroyed. | 164 // Informs the browser of a ServiceWorkerProvider being destroyed. |
164 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 165 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
165 int /* provider_id */) | 166 int /* provider_id */) |
166 | 167 |
167 // Increments and decrements the ServiceWorker object's reference | 168 // Increments and decrements the ServiceWorker object's reference |
168 // counting in the browser side. The ServiceWorker object is created | 169 // counting in the browser side. The ServiceWorker object is created |
169 // with ref-count==1 initially. | 170 // with ref-count==1 initially. |
170 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, | 171 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
465 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 466 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
466 int /* request_id */, | 467 int /* request_id */, |
467 content::ServiceWorkerClientInfo /* client */) | 468 content::ServiceWorkerClientInfo /* client */) |
468 | 469 |
469 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. | 470 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. |
470 IPC_MESSAGE_CONTROL3( | 471 IPC_MESSAGE_CONTROL3( |
471 ServiceWorkerMsg_SendStashedMessagePorts, | 472 ServiceWorkerMsg_SendStashedMessagePorts, |
472 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, | 473 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, |
473 std::vector<int> /* new_routing_ids */, | 474 std::vector<int> /* new_routing_ids */, |
474 std::vector<base::string16> /* port_names */) | 475 std::vector<base::string16> /* port_names */) |
OLD | NEW |