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() { |