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

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 that the specified plugin content origin is
495 // whitelisted and should not be subject to power saver.
496 IPC_MESSAGE_ROUTED1(FrameMsg_PluginContentOriginWhitelisted,
497 GURL /* content_origin */)
498 #endif // defined(ENABLE_PLUGINS)
499
493 // ----------------------------------------------------------------------------- 500 // -----------------------------------------------------------------------------
494 // Messages sent from the renderer to the browser. 501 // Messages sent from the renderer to the browser.
495 502
496 // Blink and JavaScript error messages to log to the console 503 // Blink and JavaScript error messages to log to the console
497 // or debugger UI. 504 // or debugger UI.
498 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, 505 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole,
499 int32, /* log level */ 506 int32, /* log level */
500 base::string16, /* msg */ 507 base::string16, /* msg */
501 int32, /* line number */ 508 int32, /* line number */
502 base::string16 /* source id */ ) 509 base::string16 /* source id */ )
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 601
595 // Following message is used to communicate the values received by the 602 // Following message is used to communicate the values received by the
596 // callback binding the JS to Cpp. 603 // callback binding the JS to Cpp.
597 // An instance of browser that has an automation host listening to it can 604 // 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 605 // have a javascript send a native value (string, number, boolean) to the
599 // listener in Cpp. (DomAutomationController) 606 // listener in Cpp. (DomAutomationController)
600 IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse, 607 IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse,
601 std::string /* json_string */, 608 std::string /* json_string */,
602 int /* automation_id */) 609 int /* automation_id */)
603 610
611 #if defined(ENABLE_PLUGINS)
604 // Sent to the browser when the renderer detects it is blocked on a pepper 612 // 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 613 // 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 614 // (according to the value of is_hung). The browser can give the user the
607 // option of killing the plugin. 615 // option of killing the plugin.
608 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, 616 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung,
609 int /* plugin_child_id */, 617 int /* plugin_child_id */,
610 base::FilePath /* path */, 618 base::FilePath /* path */,
611 bool /* is_hung */) 619 bool /* is_hung */)
612 620
613 // Sent by the renderer process to indicate that a plugin instance has crashed. 621 // Sent by the renderer process to indicate that a plugin instance has crashed.
(...skipping 23 matching lines...) Expand all
637 // necessary, and will return a handle to the channel on success. 645 // necessary, and will return a handle to the channel on success.
638 // On error an empty string is returned. 646 // On error an empty string is returned.
639 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, 647 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin,
640 int /* render_frame_id */, 648 int /* render_frame_id */,
641 GURL /* url */, 649 GURL /* url */,
642 GURL /* page_url */, 650 GURL /* page_url */,
643 std::string /* mime_type */, 651 std::string /* mime_type */,
644 IPC::ChannelHandle /* channel_handle */, 652 IPC::ChannelHandle /* channel_handle */,
645 content::WebPluginInfo /* info */) 653 content::WebPluginInfo /* info */)
646 654
655 // A renderer sends this to the brower process when it wants to temporarily
Lei Zhang 2014/10/28 02:16:23 typo: browser
tommycli 2014/10/28 22:18:07 Done.
656 // whitelist an origin's plugin content as essential. This temporary whitelist
657 // is specific to a top level frame, and is cleared when the whitelisting
658 // RenderFrame is destroyed.
659 IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentOriginAllowed,
660 GURL /* content_origin */)
661
662 // A renderer sends this to the browser process when it encounters plugin
663 // content it has marked peripheral. The renderer then expects the browser
664 // process to notify it if the origin is later temporarily whitelisted.
665 IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentMarkedPeripheral,
666 GURL /* content_origin */)
667 #endif // defined(ENABLE_PLUGINS)
668
647 // Acknowledge that we presented an ubercomp frame. 669 // Acknowledge that we presented an ubercomp frame.
648 // 670 //
649 // See FrameMsg_CompositorFrameSwapped 671 // See FrameMsg_CompositorFrameSwapped
650 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, 672 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK,
651 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) 673 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */)
652 674
653 // Provides the result from handling BeforeUnload. |proceed| matches the return 675 // Provides the result from handling BeforeUnload. |proceed| matches the return
654 // value of the frame's beforeunload handler: true if the user decided to 676 // value of the frame's beforeunload handler: true if the user decided to
655 // proceed with leaving the page. 677 // proceed with leaving the page.
656 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK, 678 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) 783 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint)
762 784
763 #if defined(OS_MACOSX) || defined(OS_ANDROID) 785 #if defined(OS_MACOSX) || defined(OS_ANDROID)
764 786
765 // Message to show/hide a popup menu using native controls. 787 // Message to show/hide a popup menu using native controls.
766 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 788 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
767 FrameHostMsg_ShowPopup_Params) 789 FrameHostMsg_ShowPopup_Params)
768 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 790 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
769 791
770 #endif 792 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698