Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
| 10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 593 | 593 |
| 594 // Following message is used to communicate the values received by the | 594 // Following message is used to communicate the values received by the |
| 595 // callback binding the JS to Cpp. | 595 // callback binding the JS to Cpp. |
| 596 // An instance of browser that has an automation host listening to it can | 596 // An instance of browser that has an automation host listening to it can |
| 597 // have a javascript send a native value (string, number, boolean) to the | 597 // have a javascript send a native value (string, number, boolean) to the |
| 598 // listener in Cpp. (DomAutomationController) | 598 // listener in Cpp. (DomAutomationController) |
| 599 IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse, | 599 IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse, |
| 600 std::string /* json_string */, | 600 std::string /* json_string */, |
| 601 int /* automation_id */) | 601 int /* automation_id */) |
| 602 | 602 |
| 603 #if defined(ENABLE_PLUGINS) | |
| 603 // Sent to the browser when the renderer detects it is blocked on a pepper | 604 // Sent to the browser when the renderer detects it is blocked on a pepper |
| 604 // plugin message for too long. This is also sent when it becomes unhung | 605 // plugin message for too long. This is also sent when it becomes unhung |
| 605 // (according to the value of is_hung). The browser can give the user the | 606 // (according to the value of is_hung). The browser can give the user the |
| 606 // option of killing the plugin. | 607 // option of killing the plugin. |
| 607 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, | 608 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, |
| 608 int /* plugin_child_id */, | 609 int /* plugin_child_id */, |
| 609 base::FilePath /* path */, | 610 base::FilePath /* path */, |
| 610 bool /* is_hung */) | 611 bool /* is_hung */) |
| 611 | 612 |
| 612 // Sent by the renderer process to indicate that a plugin instance has crashed. | 613 // Sent by the renderer process to indicate that a plugin instance has crashed. |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 624 // found plugin. | 625 // found plugin. |
| 625 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo, | 626 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo, |
| 626 int /* render_frame_id */, | 627 int /* render_frame_id */, |
| 627 GURL /* url */, | 628 GURL /* url */, |
| 628 GURL /* page_url */, | 629 GURL /* page_url */, |
| 629 std::string /* mime_type */, | 630 std::string /* mime_type */, |
| 630 bool /* found */, | 631 bool /* found */, |
| 631 content::WebPluginInfo /* plugin info */, | 632 content::WebPluginInfo /* plugin info */, |
| 632 std::string /* actual_mime_type */) | 633 std::string /* actual_mime_type */) |
| 633 | 634 |
| 635 #endif // defined(ENABLE_PLUGINS) | |
|
Lei Zhang
2014/10/30 22:39:44
nit: no blank line above.
tommycli
2014/10/30 23:22:14
Done.
| |
| 636 | |
| 634 // A renderer sends this to the browser process when it wants to | 637 // A renderer sends this to the browser process when it wants to |
| 635 // create a plugin. The browser will create the plugin process if | 638 // create a plugin. The browser will create the plugin process if |
| 636 // necessary, and will return a handle to the channel on success. | 639 // necessary, and will return a handle to the channel on success. |
| 637 // On error an empty string is returned. | 640 // On error an empty string is returned. |
| 638 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, | 641 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, |
| 639 int /* render_frame_id */, | 642 int /* render_frame_id */, |
| 640 GURL /* url */, | 643 GURL /* url */, |
| 641 GURL /* page_url */, | 644 GURL /* page_url */, |
| 642 std::string /* mime_type */, | 645 std::string /* mime_type */, |
| 643 IPC::ChannelHandle /* channel_handle */, | 646 IPC::ChannelHandle /* channel_handle */, |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 760 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 763 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| 761 | 764 |
| 762 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 765 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 763 | 766 |
| 764 // Message to show/hide a popup menu using native controls. | 767 // Message to show/hide a popup menu using native controls. |
| 765 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 768 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 766 FrameHostMsg_ShowPopup_Params) | 769 FrameHostMsg_ShowPopup_Params) |
| 767 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 770 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 768 | 771 |
| 769 #endif | 772 #endif |
| OLD | NEW |