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 // IPC messages for extensions. | 5 // IPC messages for extensions. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/common/extensions/draggable_region.h" | 10 #include "chrome/common/extensions/draggable_region.h" |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 // the given ID. This always returns a valid port ID which can be used for | 444 // the given ID. This always returns a valid port ID which can be used for |
445 // sending messages. If an error occurred, the opener will be notified | 445 // sending messages. If an error occurred, the opener will be notified |
446 // asynchronously. | 446 // asynchronously. |
447 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, | 447 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, |
448 int /* routing_id */, | 448 int /* routing_id */, |
449 std::string /* source_extension_id */, | 449 std::string /* source_extension_id */, |
450 std::string /* target_extension_id */, | 450 std::string /* target_extension_id */, |
451 std::string /* channel_name */, | 451 std::string /* channel_name */, |
452 int /* port_id */) | 452 int /* port_id */) |
453 | 453 |
| 454 IPC_SYNC_MESSAGE_CONTROL5_1(ExtensionHostMsg_OpenChannelToNativeApp, |
| 455 int /* routing_id */, |
| 456 std::string /* source_extension_id */, |
| 457 std::string /* native_app_name */, |
| 458 std::string /* channel_name */, |
| 459 std::string /* connection_message */, |
| 460 int /* port_id */) |
| 461 |
454 // Get a port handle to the given tab. The handle can be used for sending | 462 // Get a port handle to the given tab. The handle can be used for sending |
455 // messages to the extension. | 463 // messages to the extension. |
456 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, | 464 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, |
457 int /* routing_id */, | 465 int /* routing_id */, |
458 int /* tab_id */, | 466 int /* tab_id */, |
459 std::string /* extension_id */, | 467 std::string /* extension_id */, |
460 std::string /* channel_name */, | 468 std::string /* channel_name */, |
461 int /* port_id */) | 469 int /* port_id */) |
462 | 470 |
463 // Send a message to an extension process. The handle is the value returned | 471 // Send a message to an extension process. The handle is the value returned |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 // browser process. | 558 // browser process. |
551 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 559 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
552 int /* unique_id */) | 560 int /* unique_id */) |
553 | 561 |
554 // Resumes resource requests for a newly created app window. | 562 // Resumes resource requests for a newly created app window. |
555 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 563 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
556 | 564 |
557 // Sent by the renderer when the draggable regions are updated. | 565 // Sent by the renderer when the draggable regions are updated. |
558 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 566 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, |
559 std::vector<extensions::DraggableRegion> /* regions */) | 567 std::vector<extensions::DraggableRegion> /* regions */) |
OLD | NEW |