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

Unified Diff: chrome/renderer/blocked_plugin.h

Issue 6247013: Don't load plugins on prerendered pages until the pages are displayed.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
Index: chrome/renderer/blocked_plugin.h
===================================================================
--- chrome/renderer/blocked_plugin.h (revision 71683)
+++ chrome/renderer/blocked_plugin.h (working copy)
@@ -29,7 +29,8 @@
const WebKit::WebPluginParams& params,
const WebPreferences& settings,
int template_id,
- const string16& message);
+ const string16& message,
+ bool is_blocked_for_prerendering);
cbentzel 2011/01/20 19:46:59 Would it make sense to use an enum like BLOCKED_RE
mmenke 2011/01/20 20:04:22 It might. Seems we have 4 reasons, I believe - ou
webkit::npapi::WebViewPlugin* plugin() { return plugin_; }
@@ -68,6 +69,9 @@
string16 name_;
// True iff we're showing a custom menu.
bool custom_menu_showing_;
+ // True iff the plugin was blocked because the page was being prerendered.
+ // Plugin will automatically be loaded when the page is displayed.
+ bool is_blocked_for_prerendering_;
};
#endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_

Powered by Google App Engine
This is Rietveld 408576698