| 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 std::vector<std::string> /* CSS selectors */) | 505 std::vector<std::string> /* CSS selectors */) |
| 506 | 506 |
| 507 // Send by the browser to indicate a Blob handle has been transferred to the | 507 // Send by the browser to indicate a Blob handle has been transferred to the |
| 508 // renderer. This is sent after the actual extension response, and depends on | 508 // renderer. This is sent after the actual extension response, and depends on |
| 509 // the sequential nature of IPCs so that the blob has already been caught. | 509 // the sequential nature of IPCs so that the blob has already been caught. |
| 510 // This is a separate control message, so that the renderer process will send | 510 // This is a separate control message, so that the renderer process will send |
| 511 // an acknowledgement even if the RenderView has closed or navigated away. | 511 // an acknowledgement even if the RenderView has closed or navigated away. |
| 512 IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs, | 512 IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs, |
| 513 std::vector<std::string> /* blob_uuids */) | 513 std::vector<std::string> /* blob_uuids */) |
| 514 | 514 |
| 515 // The ACK for ExtensionHostMsg_CreateMimeHandlerViewGuest. |
| 516 IPC_MESSAGE_CONTROL1(ExtensionMsg_CreateMimeHandlerViewGuestACK, |
| 517 int /* element_instance_id */) |
| 518 |
| 515 // Messages sent from the renderer to the browser. | 519 // Messages sent from the renderer to the browser. |
| 516 | 520 |
| 517 // A renderer sends this message when an extension process starts an API | 521 // A renderer sends this message when an extension process starts an API |
| 518 // request. The browser will always respond with a ExtensionMsg_Response. | 522 // request. The browser will always respond with a ExtensionMsg_Response. |
| 519 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, | 523 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, |
| 520 ExtensionHostMsg_Request_Params) | 524 ExtensionHostMsg_Request_Params) |
| 521 | 525 |
| 522 // A renderer sends this message when an extension process starts an API | 526 // A renderer sends this message when an extension process starts an API |
| 523 // request. The browser will always respond with a ExtensionMsg_Response. | 527 // request. The browser will always respond with a ExtensionMsg_Response. |
| 524 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, | 528 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 extensions::StackTrace /* stack trace */, | 730 extensions::StackTrace /* stack trace */, |
| 727 int32 /* severity level */) | 731 int32 /* severity level */) |
| 728 | 732 |
| 729 // Sent by the renderer to set initialization parameters of a Browser Plugin | 733 // Sent by the renderer to set initialization parameters of a Browser Plugin |
| 730 // that is identified by |element_instance_id|. | 734 // that is identified by |element_instance_id|. |
| 731 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AttachGuest, | 735 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AttachGuest, |
| 732 int /* routing_id */, | 736 int /* routing_id */, |
| 733 int /* element_instance_id */, | 737 int /* element_instance_id */, |
| 734 int /* guest_instance_id */, | 738 int /* guest_instance_id */, |
| 735 base::DictionaryValue /* attach_params */) | 739 base::DictionaryValue /* attach_params */) |
| 740 |
| 741 // Tells the browser to create a mime handler guest view for a plugin. |
| 742 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_CreateMimeHandlerViewGuest, |
| 743 int /* render_frame_id */, |
| 744 std::string /* embedder_url */, |
| 745 std::string /* mime_type */, |
| 746 int /* element_instance_id */) |
| OLD | NEW |