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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 // necessary, and will return a handle to the channel on success. | 643 // necessary, and will return a handle to the channel on success. |
638 // On error an empty string is returned. | 644 // On error an empty string is returned. |
639 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, | 645 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, |
640 int /* render_frame_id */, | 646 int /* render_frame_id */, |
641 GURL /* url */, | 647 GURL /* url */, |
642 GURL /* page_url */, | 648 GURL /* page_url */, |
643 std::string /* mime_type */, | 649 std::string /* mime_type */, |
644 IPC::ChannelHandle /* channel_handle */, | 650 IPC::ChannelHandle /* channel_handle */, |
645 content::WebPluginInfo /* info */) | 651 content::WebPluginInfo /* info */) |
646 | 652 |
| 653 // A renderer sends this to the browser process when it wants to temporarily |
| 654 // whitelist an origin's plugin content as essential. This temporary whitelist |
| 655 // is specific to a top level frame, and is cleared when the whitelisting |
| 656 // RenderFrame is destroyed. |
| 657 IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentOriginAllowed, |
| 658 GURL /* content_origin */) |
647 #endif // defined(ENABLE_PLUGINS) | 659 #endif // defined(ENABLE_PLUGINS) |
648 | 660 |
649 // Acknowledge that we presented an ubercomp frame. | 661 // Acknowledge that we presented an ubercomp frame. |
650 // | 662 // |
651 // See FrameMsg_CompositorFrameSwapped | 663 // See FrameMsg_CompositorFrameSwapped |
652 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, | 664 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, |
653 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 665 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
654 | 666 |
655 // Provides the result from handling BeforeUnload. |proceed| matches the return | 667 // Provides the result from handling BeforeUnload. |proceed| matches the return |
656 // value of the frame's beforeunload handler: true if the user decided to | 668 // value of the frame's beforeunload handler: true if the user decided to |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 775 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
764 | 776 |
765 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 777 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
766 | 778 |
767 // Message to show/hide a popup menu using native controls. | 779 // Message to show/hide a popup menu using native controls. |
768 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 780 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
769 FrameHostMsg_ShowPopup_Params) | 781 FrameHostMsg_ShowPopup_Params) |
770 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 782 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
771 | 783 |
772 #endif | 784 #endif |
OLD | NEW |