| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 // PlzNavigate | 486 // PlzNavigate |
| 487 // Tells the renderer that a navigation is ready to commit. The renderer should | 487 // Tells the renderer that a navigation is ready to commit. The renderer should |
| 488 // request |stream_url| to get access to the stream containing the body of the | 488 // request |stream_url| to get access to the stream containing the body of the |
| 489 // response. | 489 // response. |
| 490 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, | 490 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, |
| 491 content::ResourceResponseHead, /* response */ | 491 content::ResourceResponseHead, /* response */ |
| 492 GURL, /* stream_url */ | 492 GURL, /* stream_url */ |
| 493 content::CommonNavigationParams, /* common_params */ | 493 content::CommonNavigationParams, /* common_params */ |
| 494 content::CommitNavigationParams /* commit_params */) | 494 content::CommitNavigationParams /* commit_params */) |
| 495 | 495 |
| 496 #if defined(ENABLE_PLUGINS) |
| 497 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
| 498 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
| 499 std::set<GURL> /* origin_whitelist */) |
| 500 #endif // defined(ENABLE_PLUGINS) |
| 501 |
| 496 // ----------------------------------------------------------------------------- | 502 // ----------------------------------------------------------------------------- |
| 497 // Messages sent from the renderer to the browser. | 503 // Messages sent from the renderer to the browser. |
| 498 | 504 |
| 499 // Blink and JavaScript error messages to log to the console | 505 // Blink and JavaScript error messages to log to the console |
| 500 // or debugger UI. | 506 // or debugger UI. |
| 501 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 507 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
| 502 int32, /* log level */ | 508 int32, /* log level */ |
| 503 base::string16, /* msg */ | 509 base::string16, /* msg */ |
| 504 int32, /* line number */ | 510 int32, /* line number */ |
| 505 base::string16 /* source id */ ) | 511 base::string16 /* source id */ ) |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 // |actual_mime_type| is the actual mime type supported by the | 633 // |actual_mime_type| is the actual mime type supported by the |
| 628 // found plugin. | 634 // found plugin. |
| 629 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo, | 635 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo, |
| 630 int /* render_frame_id */, | 636 int /* render_frame_id */, |
| 631 GURL /* url */, | 637 GURL /* url */, |
| 632 GURL /* page_url */, | 638 GURL /* page_url */, |
| 633 std::string /* mime_type */, | 639 std::string /* mime_type */, |
| 634 bool /* found */, | 640 bool /* found */, |
| 635 content::WebPluginInfo /* plugin info */, | 641 content::WebPluginInfo /* plugin info */, |
| 636 std::string /* actual_mime_type */) | 642 std::string /* actual_mime_type */) |
| 643 |
| 644 // A renderer sends this to the browser process when it wants to temporarily |
| 645 // whitelist an origin's plugin content as essential. This temporary whitelist |
| 646 // is specific to a top level frame, and is cleared when the whitelisting |
| 647 // RenderFrame is destroyed. |
| 648 IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentOriginAllowed, |
| 649 GURL /* content_origin */) |
| 637 #endif // defined(ENABLE_PLUGINS) | 650 #endif // defined(ENABLE_PLUGINS) |
| 638 | 651 |
| 639 // A renderer sends this to the browser process when it wants to | 652 // A renderer sends this to the browser process when it wants to |
| 640 // create a plugin. The browser will create the plugin process if | 653 // create a plugin. The browser will create the plugin process if |
| 641 // necessary, and will return a handle to the channel on success. | 654 // necessary, and will return a handle to the channel on success. |
| 642 // On error an empty string is returned. | 655 // On error an empty string is returned. |
| 643 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, | 656 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, |
| 644 int /* render_frame_id */, | 657 int /* render_frame_id */, |
| 645 GURL /* url */, | 658 GURL /* url */, |
| 646 GURL /* page_url */, | 659 GURL /* page_url */, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 778 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| 766 | 779 |
| 767 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 780 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 768 | 781 |
| 769 // Message to show/hide a popup menu using native controls. | 782 // Message to show/hide a popup menu using native controls. |
| 770 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 783 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 771 FrameHostMsg_ShowPopup_Params) | 784 FrameHostMsg_ShowPopup_Params) |
| 772 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 785 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 773 | 786 |
| 774 #endif | 787 #endif |
| OLD | NEW |