| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 std::vector<std::string> /* CSS selectors */) | 546 std::vector<std::string> /* CSS selectors */) |
| 547 | 547 |
| 548 // Send by the browser to indicate a Blob handle has been transferred to the | 548 // Send by the browser to indicate a Blob handle has been transferred to the |
| 549 // renderer. This is sent after the actual extension response, and depends on | 549 // renderer. This is sent after the actual extension response, and depends on |
| 550 // the sequential nature of IPCs so that the blob has already been caught. | 550 // the sequential nature of IPCs so that the blob has already been caught. |
| 551 // This is a separate control message, so that the renderer process will send | 551 // This is a separate control message, so that the renderer process will send |
| 552 // an acknowledgement even if the RenderView has closed or navigated away. | 552 // an acknowledgement even if the RenderView has closed or navigated away. |
| 553 IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs, | 553 IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs, |
| 554 std::vector<std::string> /* blob_uuids */) | 554 std::vector<std::string> /* blob_uuids */) |
| 555 | 555 |
| 556 // The ACK for ExtensionHostMsg_CreateMimeHandlerViewGuest. | |
| 557 IPC_MESSAGE_CONTROL1(ExtensionMsg_CreateMimeHandlerViewGuestACK, | |
| 558 int /* element_instance_id */) | |
| 559 | |
| 560 // Once a MimeHandlerView guest's JavaScript onload function has been called, | |
| 561 // this IPC is sent to the container to notify it. | |
| 562 IPC_MESSAGE_CONTROL1(ExtensionMsg_MimeHandlerViewGuestOnLoadCompleted, | |
| 563 int /* element_instance_id */) | |
| 564 | |
| 565 // Once a RenderView proxy has been created for the guest in the embedder render | |
| 566 // process, this IPC informs the embedder of the proxy's routing ID. | |
| 567 IPC_MESSAGE_CONTROL2(ExtensionMsg_GuestAttached, | |
| 568 int /* element_instance_id */, | |
| 569 int /* source_routing_id */) | |
| 570 | |
| 571 // This IPC tells the browser process to detach the provided | |
| 572 // |element_instance_id| from a GuestViewBase if it is attached to one. | |
| 573 // In other words, routing of input and graphics will no longer flow through | |
| 574 // the container associated with the provided ID. | |
| 575 IPC_MESSAGE_CONTROL1(ExtensionMsg_GuestDetached, | |
| 576 int /* element_instance_id*/) | |
| 577 | |
| 578 // Messages sent from the renderer to the browser. | 556 // Messages sent from the renderer to the browser. |
| 579 | 557 |
| 580 // A renderer sends this message when an extension process starts an API | 558 // A renderer sends this message when an extension process starts an API |
| 581 // request. The browser will always respond with a ExtensionMsg_Response. | 559 // request. The browser will always respond with a ExtensionMsg_Response. |
| 582 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, | 560 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, |
| 583 ExtensionHostMsg_Request_Params) | 561 ExtensionHostMsg_Request_Params) |
| 584 | 562 |
| 585 // A renderer sends this message when an extension process starts an API | 563 // A renderer sends this message when an extension process starts an API |
| 586 // request. The browser will always respond with a ExtensionMsg_Response. | 564 // request. The browser will always respond with a ExtensionMsg_Response. |
| 587 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, | 565 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 std::string /* name */) | 760 std::string /* name */) |
| 783 | 761 |
| 784 // Tells listeners that a detailed message was reported to the console by | 762 // Tells listeners that a detailed message was reported to the console by |
| 785 // WebKit. | 763 // WebKit. |
| 786 IPC_MESSAGE_ROUTED4(ExtensionHostMsg_DetailedConsoleMessageAdded, | 764 IPC_MESSAGE_ROUTED4(ExtensionHostMsg_DetailedConsoleMessageAdded, |
| 787 base::string16 /* message */, | 765 base::string16 /* message */, |
| 788 base::string16 /* source */, | 766 base::string16 /* source */, |
| 789 extensions::StackTrace /* stack trace */, | 767 extensions::StackTrace /* stack trace */, |
| 790 int32 /* severity level */) | 768 int32 /* severity level */) |
| 791 | 769 |
| 792 // Sent by the renderer to set initialization parameters of a Browser Plugin | |
| 793 // that is identified by |element_instance_id|. | |
| 794 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AttachGuest, | |
| 795 int /* routing_id */, | |
| 796 int /* element_instance_id */, | |
| 797 int /* guest_instance_id */, | |
| 798 base::DictionaryValue /* attach_params */) | |
| 799 | |
| 800 // Tells the browser to create a mime handler guest view for a plugin. | |
| 801 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_CreateMimeHandlerViewGuest, | |
| 802 int /* render_frame_id */, | |
| 803 std::string /* view_id */, | |
| 804 int /* element_instance_id */, | |
| 805 gfx::Size /* element_size */) | |
| 806 | |
| 807 // Sent when a query selector request is made from the automation API. | 770 // Sent when a query selector request is made from the automation API. |
| 808 // acc_obj_id is the accessibility tree ID of the starting element. | 771 // acc_obj_id is the accessibility tree ID of the starting element. |
| 809 IPC_MESSAGE_ROUTED3(ExtensionMsg_AutomationQuerySelector, | 772 IPC_MESSAGE_ROUTED3(ExtensionMsg_AutomationQuerySelector, |
| 810 int /* request_id */, | 773 int /* request_id */, |
| 811 int /* acc_obj_id */, | 774 int /* acc_obj_id */, |
| 812 base::string16 /* selector */) | 775 base::string16 /* selector */) |
| 813 | 776 |
| 814 // Result of a query selector request. | 777 // Result of a query selector request. |
| 815 // result_acc_obj_id is the accessibility tree ID of the result element; 0 | 778 // result_acc_obj_id is the accessibility tree ID of the result element; 0 |
| 816 // indicates no result. | 779 // indicates no result. |
| 817 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, | 780 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, |
| 818 int /* request_id */, | 781 int /* request_id */, |
| 819 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, | 782 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, |
| 820 int /* result_acc_obj_id */) | 783 int /* result_acc_obj_id */) |
| OLD | NEW |