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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 // the given ID. This always returns a valid port ID which can be used for | 435 // the given ID. This always returns a valid port ID which can be used for |
436 // sending messages. If an error occurred, the opener will be notified | 436 // sending messages. If an error occurred, the opener will be notified |
437 // asynchronously. | 437 // asynchronously. |
438 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, | 438 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, |
439 int /* routing_id */, | 439 int /* routing_id */, |
440 std::string /* source_extension_id */, | 440 std::string /* source_extension_id */, |
441 std::string /* target_extension_id */, | 441 std::string /* target_extension_id */, |
442 std::string /* channel_name */, | 442 std::string /* channel_name */, |
443 int /* port_id */) | 443 int /* port_id */) |
444 | 444 |
| 445 IPC_SYNC_MESSAGE_CONTROL5_1(ExtensionHostMsg_OpenChannelToNativeApp, |
| 446 int /* routing_id */, |
| 447 std::string /* source_extension_id */, |
| 448 std::string /* native_app_name */, |
| 449 std::string /* channel_name */, |
| 450 std::string /* connection_message */, |
| 451 int /* port_id */) |
| 452 |
445 // Get a port handle to the given tab. The handle can be used for sending | 453 // Get a port handle to the given tab. The handle can be used for sending |
446 // messages to the extension. | 454 // messages to the extension. |
447 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, | 455 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, |
448 int /* routing_id */, | 456 int /* routing_id */, |
449 int /* tab_id */, | 457 int /* tab_id */, |
450 std::string /* extension_id */, | 458 std::string /* extension_id */, |
451 std::string /* channel_name */, | 459 std::string /* channel_name */, |
452 int /* port_id */) | 460 int /* port_id */) |
453 | 461 |
454 // Send a message to an extension process. The handle is the value returned | 462 // 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... |
541 // browser process. | 549 // browser process. |
542 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 550 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
543 int /* unique_id */) | 551 int /* unique_id */) |
544 | 552 |
545 // Resumes resource requests for a newly created app window. | 553 // Resumes resource requests for a newly created app window. |
546 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 554 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
547 | 555 |
548 // Sent by the renderer when the draggable regions are updated. | 556 // Sent by the renderer when the draggable regions are updated. |
549 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 557 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, |
550 std::vector<extensions::DraggableRegion> /* regions */) | 558 std::vector<extensions::DraggableRegion> /* regions */) |
OLD | NEW |