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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 // the given ID. This always returns a valid port ID which can be used for | 448 // the given ID. This always returns a valid port ID which can be used for |
449 // sending messages. If an error occurred, the opener will be notified | 449 // sending messages. If an error occurred, the opener will be notified |
450 // asynchronously. | 450 // asynchronously. |
451 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, | 451 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, |
452 int /* routing_id */, | 452 int /* routing_id */, |
453 std::string /* source_extension_id */, | 453 std::string /* source_extension_id */, |
454 std::string /* target_extension_id */, | 454 std::string /* target_extension_id */, |
455 std::string /* channel_name */, | 455 std::string /* channel_name */, |
456 int /* port_id */) | 456 int /* port_id */) |
457 | 457 |
458 IPC_SYNC_MESSAGE_CONTROL5_1(ExtensionHostMsg_OpenChannelToNativeApp, | 458 IPC_SYNC_MESSAGE_CONTROL3_1(ExtensionHostMsg_OpenChannelToNativeApp, |
459 int /* routing_id */, | 459 int /* routing_id */, |
460 std::string /* source_extension_id */, | 460 std::string /* source_extension_id */, |
461 std::string /* native_app_name */, | 461 std::string /* native_app_name */, |
462 std::string /* channel_name */, | |
463 std::string /* connection_message */, | |
464 int /* port_id */) | 462 int /* port_id */) |
465 | 463 |
466 // Get a port handle to the given tab. The handle can be used for sending | 464 // Get a port handle to the given tab. The handle can be used for sending |
467 // messages to the extension. | 465 // messages to the extension. |
468 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, | 466 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, |
469 int /* routing_id */, | 467 int /* routing_id */, |
470 int /* tab_id */, | 468 int /* tab_id */, |
471 std::string /* extension_id */, | 469 std::string /* extension_id */, |
472 std::string /* channel_name */, | 470 std::string /* channel_name */, |
473 int /* port_id */) | 471 int /* port_id */) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 // browser process. | 562 // browser process. |
565 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 563 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
566 int /* unique_id */) | 564 int /* unique_id */) |
567 | 565 |
568 // Resumes resource requests for a newly created app window. | 566 // Resumes resource requests for a newly created app window. |
569 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 567 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
570 | 568 |
571 // Sent by the renderer when the draggable regions are updated. | 569 // Sent by the renderer when the draggable regions are updated. |
572 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 570 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, |
573 std::vector<extensions::DraggableRegion> /* regions */) | 571 std::vector<extensions::DraggableRegion> /* regions */) |
OLD | NEW |