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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1421693002: Plugin Power Saver: Do not always throttle plugins with posters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0025-pps-poster-pixel-tests
Patch Set: Created 5 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index aaccc4354fb359f545106b1e21036860f2f98372..7786f1f1a974ccea608ce43b59a2fe1f1efbf038 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1982,6 +1982,23 @@ void RenderFrameImpl::RegisterPeripheralPlugin(
return plugin_power_saver_helper_->RegisterPeripheralPlugin(
content_origin, unthrottle_callback);
}
+
+bool RenderFrameImpl::ShouldThrottleContent(
+ const url::Origin& main_frame_origin,
+ const url::Origin& content_origin,
+ const std::string& plugin_module_name,
+ int width,
+ int height,
+ bool* cross_origin_main_content) const {
+ return plugin_power_saver_helper_->ShouldThrottleContent(
+ main_frame_origin, content_origin, plugin_module_name, width, height,
+ cross_origin_main_content);
+}
+
+void RenderFrameImpl::WhitelistContentOrigin(
+ const url::Origin& content_origin) {
+ return plugin_power_saver_helper_->WhitelistContentOrigin(content_origin);
+}
#endif // defined(ENABLE_PLUGINS)
bool RenderFrameImpl::IsFTPDirectoryListing() {
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698