Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: content/common/frame_messages.h

Issue 680193002: Plugin Power Saver: Implement size-based heuristic for peripheral content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 // |actual_mime_type| is the actual mime type supported by the 630 // |actual_mime_type| is the actual mime type supported by the
625 // found plugin. 631 // found plugin.
626 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo, 632 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo,
627 int /* render_frame_id */, 633 int /* render_frame_id */,
628 GURL /* url */, 634 GURL /* url */,
629 GURL /* page_url */, 635 GURL /* page_url */,
630 std::string /* mime_type */, 636 std::string /* mime_type */,
631 bool /* found */, 637 bool /* found */,
632 content::WebPluginInfo /* plugin info */, 638 content::WebPluginInfo /* plugin info */,
633 std::string /* actual_mime_type */) 639 std::string /* actual_mime_type */)
640
641 // A renderer sends this to the browser process when it wants to temporarily
642 // whitelist an origin's plugin content as essential. This temporary whitelist
643 // is specific to a top level frame, and is cleared when the whitelisting
644 // RenderFrame is destroyed.
645 IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentOriginAllowed,
646 GURL /* content_origin */)
634 #endif // defined(ENABLE_PLUGINS) 647 #endif // defined(ENABLE_PLUGINS)
635 648
636 // A renderer sends this to the browser process when it wants to 649 // A renderer sends this to the browser process when it wants to
637 // create a plugin. The browser will create the plugin process if 650 // create a plugin. The browser will create the plugin process if
638 // necessary, and will return a handle to the channel on success. 651 // necessary, and will return a handle to the channel on success.
639 // On error an empty string is returned. 652 // On error an empty string is returned.
640 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, 653 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin,
641 int /* render_frame_id */, 654 int /* render_frame_id */,
642 GURL /* url */, 655 GURL /* url */,
643 GURL /* page_url */, 656 GURL /* page_url */,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) 775 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint)
763 776
764 #if defined(OS_MACOSX) || defined(OS_ANDROID) 777 #if defined(OS_MACOSX) || defined(OS_ANDROID)
765 778
766 // Message to show/hide a popup menu using native controls. 779 // Message to show/hide a popup menu using native controls.
767 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 780 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
768 FrameHostMsg_ShowPopup_Params) 781 FrameHostMsg_ShowPopup_Params)
769 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 782 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
770 783
771 #endif 784 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698