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

Unified Diff: components/plugins/renderer/loadable_plugin_placeholder.h

Issue 1491893004: Plugin Power Saver: Remove Size Recheck hack in plugin placeholders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0047-pps-skip-poster-for-same-origin
Patch Set: Created 5 years 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
Index: components/plugins/renderer/loadable_plugin_placeholder.h
diff --git a/components/plugins/renderer/loadable_plugin_placeholder.h b/components/plugins/renderer/loadable_plugin_placeholder.h
index 6cd4ad8b81eef96152fc2181f78b63fa5be283fb..417db5fa7c1e583cf257da0828710d6cc2f4a653 100644
--- a/components/plugins/renderer/loadable_plugin_placeholder.h
+++ b/components/plugins/renderer/loadable_plugin_placeholder.h
@@ -87,7 +87,6 @@ class LoadablePluginPlaceholder : public PluginPlaceholderBase {
void UpdateMessage();
bool LoadingBlocked() const;
- void RecheckSizeAndMaybeUnthrottle();
// Plugin creation is embedder-specific.
virtual blink::WebPlugin* CreatePlugin() = 0;
@@ -119,10 +118,7 @@ class LoadablePluginPlaceholder : public PluginPlaceholderBase {
bool finished_loading_;
std::string identifier_;
- // Used to prevent re-entrancy during the size recheck for throttled plugins.
- bool in_size_recheck_;
gfx::Rect unobscured_rect_;
- base::OneShotTimer size_update_timer_;
// True if the power saver heuristic has already been run on this content.
bool heuristic_run_before_;

Powered by Google App Engine
This is Rietveld 408576698