| 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 | |
| 462 // Get a port handle to the given tab. The handle can be used for sending | 454 // Get a port handle to the given tab. The handle can be used for sending |
| 463 // messages to the extension. | 455 // messages to the extension. |
| 464 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, | 456 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, |
| 465 int /* routing_id */, | 457 int /* routing_id */, |
| 466 int /* tab_id */, | 458 int /* tab_id */, |
| 467 std::string /* extension_id */, | 459 std::string /* extension_id */, |
| 468 std::string /* channel_name */, | 460 std::string /* channel_name */, |
| 469 int /* port_id */) | 461 int /* port_id */) |
| 470 | 462 |
| 471 // Send a message to an extension process. The handle is the value returned | 463 // 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... |
| 558 // browser process. | 550 // browser process. |
| 559 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 551 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
| 560 int /* unique_id */) | 552 int /* unique_id */) |
| 561 | 553 |
| 562 // Resumes resource requests for a newly created app window. | 554 // Resumes resource requests for a newly created app window. |
| 563 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 555 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
| 564 | 556 |
| 565 // Sent by the renderer when the draggable regions are updated. | 557 // Sent by the renderer when the draggable regions are updated. |
| 566 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 558 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, |
| 567 std::vector<extensions::DraggableRegion> /* regions */) | 559 std::vector<extensions::DraggableRegion> /* regions */) |
| OLD | NEW |