OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 | 542 |
543 // The browser changed its mind about suspending this extension. | 543 // The browser changed its mind about suspending this extension. |
544 IPC_MESSAGE_CONTROL1(ExtensionMsg_CancelSuspend, | 544 IPC_MESSAGE_CONTROL1(ExtensionMsg_CancelSuspend, |
545 std::string /* extension_id */) | 545 std::string /* extension_id */) |
546 | 546 |
547 // Response to the renderer for ExtensionHostMsg_GetAppInstallState. | 547 // Response to the renderer for ExtensionHostMsg_GetAppInstallState. |
548 IPC_MESSAGE_ROUTED2(ExtensionMsg_GetAppInstallStateResponse, | 548 IPC_MESSAGE_ROUTED2(ExtensionMsg_GetAppInstallStateResponse, |
549 std::string /* state */, | 549 std::string /* state */, |
550 int32_t /* callback_id */) | 550 int32_t /* callback_id */) |
551 | 551 |
| 552 // Check whether the Port for extension messaging exists in the frame. If the |
| 553 // port ID is unknown, the frame replies with ExtensionHostMsg_CloseMessagePort. |
| 554 IPC_MESSAGE_ROUTED1(ExtensionMsg_ValidateMessagePort, |
| 555 int /* port_id */) |
| 556 |
552 // Dispatch the Port.onConnect event for message channels. | 557 // Dispatch the Port.onConnect event for message channels. |
553 IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect, | 558 IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect, |
554 int /* target_port_id */, | 559 int /* target_port_id */, |
555 std::string /* channel_name */, | 560 std::string /* channel_name */, |
556 ExtensionMsg_TabConnectionInfo /* source */, | 561 ExtensionMsg_TabConnectionInfo /* source */, |
557 ExtensionMsg_ExternalConnectionInfo, | 562 ExtensionMsg_ExternalConnectionInfo, |
558 std::string /* tls_channel_id */) | 563 std::string /* tls_channel_id */) |
559 | 564 |
560 // Deliver a message sent with ExtensionHostMsg_PostMessage. | 565 // Deliver a message sent with ExtensionHostMsg_PostMessage. |
561 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, | 566 IPC_MESSAGE_ROUTED3(ExtensionMsg_DeliverMessage, |
562 int /* target_port_id */, | 567 int /* target_port_id */, |
| 568 int /* source_tab_id */, |
563 extensions::Message) | 569 extensions::Message) |
564 | 570 |
565 // Dispatch the Port.onDisconnect event for message channels. | 571 // Dispatch the Port.onDisconnect event for message channels. |
566 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect, | 572 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect, |
567 int /* port_id */, | 573 int /* port_id */, |
568 std::string /* error_message */) | 574 std::string /* error_message */) |
569 | 575 |
570 // Informs the renderer what channel (dev, beta, stable, etc) is running. | 576 // Informs the renderer what channel (dev, beta, stable, etc) is running. |
571 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetChannel, | 577 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetChannel, |
572 int /* channel */) | 578 int /* channel */) |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 int /* acc_obj_id */, | 830 int /* acc_obj_id */, |
825 base::string16 /* selector */) | 831 base::string16 /* selector */) |
826 | 832 |
827 // Result of a query selector request. | 833 // Result of a query selector request. |
828 // result_acc_obj_id is the accessibility tree ID of the result element; 0 | 834 // result_acc_obj_id is the accessibility tree ID of the result element; 0 |
829 // indicates no result. | 835 // indicates no result. |
830 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, | 836 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, |
831 int /* request_id */, | 837 int /* request_id */, |
832 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, | 838 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, |
833 int /* result_acc_obj_id */) | 839 int /* result_acc_obj_id */) |
OLD | NEW |