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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 // PlzNavigate | 483 // PlzNavigate |
484 // Tells the renderer that a navigation is ready to commit. The renderer should | 484 // Tells the renderer that a navigation is ready to commit. The renderer should |
485 // request |stream_url| to get access to the stream containing the body of the | 485 // request |stream_url| to get access to the stream containing the body of the |
486 // response. | 486 // response. |
487 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, | 487 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, |
488 content::ResourceResponseHead, /* response */ | 488 content::ResourceResponseHead, /* response */ |
489 GURL, /* stream_url */ | 489 GURL, /* stream_url */ |
490 content::CommonNavigationParams, /* common_params */ | 490 content::CommonNavigationParams, /* common_params */ |
491 content::CommitNavigationParams /* commit_params */) | 491 content::CommitNavigationParams /* commit_params */) |
492 | 492 |
| 493 #if defined(ENABLE_PLUGINS) |
| 494 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
| 495 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
| 496 std::set<GURL> /* origin_whitelist */) |
| 497 #endif // defined(ENABLE_PLUGINS) |
| 498 |
493 // ----------------------------------------------------------------------------- | 499 // ----------------------------------------------------------------------------- |
494 // Messages sent from the renderer to the browser. | 500 // Messages sent from the renderer to the browser. |
495 | 501 |
496 // Blink and JavaScript error messages to log to the console | 502 // Blink and JavaScript error messages to log to the console |
497 // or debugger UI. | 503 // or debugger UI. |
498 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 504 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
499 int32, /* log level */ | 505 int32, /* log level */ |
500 base::string16, /* msg */ | 506 base::string16, /* msg */ |
501 int32, /* line number */ | 507 int32, /* line number */ |
502 base::string16 /* source id */ ) | 508 base::string16 /* source id */ ) |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 | 600 |
595 // Following message is used to communicate the values received by the | 601 // Following message is used to communicate the values received by the |
596 // callback binding the JS to Cpp. | 602 // callback binding the JS to Cpp. |
597 // An instance of browser that has an automation host listening to it can | 603 // An instance of browser that has an automation host listening to it can |
598 // have a javascript send a native value (string, number, boolean) to the | 604 // have a javascript send a native value (string, number, boolean) to the |
599 // listener in Cpp. (DomAutomationController) | 605 // listener in Cpp. (DomAutomationController) |
600 IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse, | 606 IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse, |
601 std::string /* json_string */, | 607 std::string /* json_string */, |
602 int /* automation_id */) | 608 int /* automation_id */) |
603 | 609 |
| 610 #if defined(ENABLE_PLUGINS) |
604 // Sent to the browser when the renderer detects it is blocked on a pepper | 611 // Sent to the browser when the renderer detects it is blocked on a pepper |
605 // plugin message for too long. This is also sent when it becomes unhung | 612 // plugin message for too long. This is also sent when it becomes unhung |
606 // (according to the value of is_hung). The browser can give the user the | 613 // (according to the value of is_hung). The browser can give the user the |
607 // option of killing the plugin. | 614 // option of killing the plugin. |
608 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, | 615 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, |
609 int /* plugin_child_id */, | 616 int /* plugin_child_id */, |
610 base::FilePath /* path */, | 617 base::FilePath /* path */, |
611 bool /* is_hung */) | 618 bool /* is_hung */) |
612 | 619 |
613 // Sent by the renderer process to indicate that a plugin instance has crashed. | 620 // Sent by the renderer process to indicate that a plugin instance has crashed. |
(...skipping 23 matching lines...) Expand all Loading... |
637 // necessary, and will return a handle to the channel on success. | 644 // necessary, and will return a handle to the channel on success. |
638 // On error an empty string is returned. | 645 // On error an empty string is returned. |
639 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, | 646 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, |
640 int /* render_frame_id */, | 647 int /* render_frame_id */, |
641 GURL /* url */, | 648 GURL /* url */, |
642 GURL /* page_url */, | 649 GURL /* page_url */, |
643 std::string /* mime_type */, | 650 std::string /* mime_type */, |
644 IPC::ChannelHandle /* channel_handle */, | 651 IPC::ChannelHandle /* channel_handle */, |
645 content::WebPluginInfo /* info */) | 652 content::WebPluginInfo /* info */) |
646 | 653 |
| 654 // A renderer sends this to the browser process when it wants to temporarily |
| 655 // whitelist an origin's plugin content as essential. This temporary whitelist |
| 656 // is specific to a top level frame, and is cleared when the whitelisting |
| 657 // RenderFrame is destroyed. |
| 658 IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentOriginAllowed, |
| 659 GURL /* content_origin */) |
| 660 #endif // defined(ENABLE_PLUGINS) |
| 661 |
647 // Acknowledge that we presented an ubercomp frame. | 662 // Acknowledge that we presented an ubercomp frame. |
648 // | 663 // |
649 // See FrameMsg_CompositorFrameSwapped | 664 // See FrameMsg_CompositorFrameSwapped |
650 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, | 665 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, |
651 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 666 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
652 | 667 |
653 // Provides the result from handling BeforeUnload. |proceed| matches the return | 668 // Provides the result from handling BeforeUnload. |proceed| matches the return |
654 // value of the frame's beforeunload handler: true if the user decided to | 669 // value of the frame's beforeunload handler: true if the user decided to |
655 // proceed with leaving the page. | 670 // proceed with leaving the page. |
656 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK, | 671 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 776 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
762 | 777 |
763 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 778 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
764 | 779 |
765 // Message to show/hide a popup menu using native controls. | 780 // Message to show/hide a popup menu using native controls. |
766 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 781 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
767 FrameHostMsg_ShowPopup_Params) | 782 FrameHostMsg_ShowPopup_Params) |
768 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 783 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
769 | 784 |
770 #endif | 785 #endif |
OLD | NEW |