OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1289 double /* left_channel */, | 1289 double /* left_channel */, |
1290 double /* right_channel */) | 1290 double /* right_channel */) |
1291 | 1291 |
1292 // A renderer sends this message when an extension process starts an API | 1292 // A renderer sends this message when an extension process starts an API |
1293 // request. If callback id is -1, no response will be sent. | 1293 // request. If callback id is -1, no response will be sent. |
1294 IPC_MESSAGE_ROUTED3(ViewHostMsg_ExtensionRequest, | 1294 IPC_MESSAGE_ROUTED3(ViewHostMsg_ExtensionRequest, |
1295 std::string /* name */, | 1295 std::string /* name */, |
1296 std::string /* argument */, | 1296 std::string /* argument */, |
1297 int /* callback id */) | 1297 int /* callback id */) |
1298 | 1298 |
| 1299 // Notify the browser that this renderer added a listener to an event. |
| 1300 IPC_MESSAGE_CONTROL1(ViewHostMsg_ExtensionAddListener, |
| 1301 std::string /* name */) |
| 1302 |
| 1303 // Notify the browser that this renderer removed a listener from an event. |
| 1304 IPC_MESSAGE_CONTROL1(ViewHostMsg_ExtensionRemoveListener, |
| 1305 std::string /* name */) |
| 1306 |
1299 #if defined(OS_MACOSX) | 1307 #if defined(OS_MACOSX) |
1300 // On OSX, we cannot allocated shared memory from within the sandbox, so | 1308 // On OSX, we cannot allocated shared memory from within the sandbox, so |
1301 // this call exists for the renderer to ask the browser to allocate memory | 1309 // this call exists for the renderer to ask the browser to allocate memory |
1302 // on its behalf. We return a file descriptor to the POSIX shared memory. | 1310 // on its behalf. We return a file descriptor to the POSIX shared memory. |
1303 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocTransportDIB, | 1311 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocTransportDIB, |
1304 size_t, /* bytes requested */ | 1312 size_t, /* bytes requested */ |
1305 TransportDIB::Handle /* DIB */) | 1313 TransportDIB::Handle /* DIB */) |
1306 | 1314 |
1307 // Since the browser keeps handles to the allocated transport DIBs, this | 1315 // Since the browser keeps handles to the allocated transport DIBs, this |
1308 // message is sent to tell the browser that it may release them when the | 1316 // message is sent to tell the browser that it may release them when the |
(...skipping 30 matching lines...) Expand all Loading... |
1339 // by ViewHostMsg_OpenChannelToExtension. | 1347 // by ViewHostMsg_OpenChannelToExtension. |
1340 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage, | 1348 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage, |
1341 int /* port_id */, | 1349 int /* port_id */, |
1342 std::string /* message */) | 1350 std::string /* message */) |
1343 | 1351 |
1344 // Message to show a popup menu using native cocoa controls (Mac only). | 1352 // Message to show a popup menu using native cocoa controls (Mac only). |
1345 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, | 1353 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, |
1346 ViewHostMsg_ShowPopup_Params) | 1354 ViewHostMsg_ShowPopup_Params) |
1347 | 1355 |
1348 IPC_END_MESSAGES(ViewHost) | 1356 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |