OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Defines messages between the browser and worker process, as well as between | 5 // Defines messages between the browser and worker process, as well as between |
6 // the renderer and worker process. | 6 // the renderer and worker process. |
7 | 7 |
8 // Multiply-included message file, hence no include guard. | 8 // Multiply-included message file, hence no include guard. |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 int /* sent_message_port_id */, | 82 int /* sent_message_port_id */, |
83 int /* routing_id */) | 83 int /* routing_id */) |
84 | 84 |
85 IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed) | 85 IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed) |
86 | 86 |
87 | 87 |
88 //----------------------------------------------------------------------------- | 88 //----------------------------------------------------------------------------- |
89 // WorkerHost messages | 89 // WorkerHost messages |
90 // These are messages sent from the worker (renderer process) to the worker | 90 // These are messages sent from the worker (renderer process) to the worker |
91 // host (browser process). | 91 // host (browser process). |
| 92 IPC_MESSAGE_CONTROL2(WorkerHostMsg_CountFeature, |
| 93 int /* worker_route_id */, |
| 94 uint32_t /* use_counter_id */) |
| 95 |
92 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, | 96 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, |
93 int /* worker_route_id */) | 97 int /* worker_route_id */) |
94 | 98 |
95 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextDestroyed, | 99 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextDestroyed, |
96 int /* worker_route_id */) | 100 int /* worker_route_id */) |
97 | 101 |
98 // Renderer -> Browser message to indicate that the worker is ready for | 102 // Renderer -> Browser message to indicate that the worker is ready for |
99 // inspection. | 103 // inspection. |
100 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerReadyForInspection, | 104 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerReadyForInspection, |
101 int /* worker_route_id */) | 105 int /* worker_route_id */) |
102 | 106 |
103 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoaded, | 107 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoaded, |
104 int /* worker_route_id */) | 108 int /* worker_route_id */) |
105 | 109 |
106 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoadFailed, | 110 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoadFailed, |
107 int /* worker_route_id */) | 111 int /* worker_route_id */) |
108 | 112 |
109 IPC_MESSAGE_CONTROL2(WorkerHostMsg_WorkerConnected, | 113 IPC_MESSAGE_CONTROL2(WorkerHostMsg_WorkerConnected, |
110 int /* message_port_id */, | 114 int /* message_port_id */, |
111 int /* worker_route_id */) | 115 int /* worker_route_id */) |
OLD | NEW |