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

Unified Diff: chrome/renderer/plugins/plugin_placeholder.h

Issue 10093011: Show a replacement plug-in for loading errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 8 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 | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/plugins/plugin_placeholder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/plugins/plugin_placeholder.h
diff --git a/chrome/renderer/plugins/plugin_placeholder.h b/chrome/renderer/plugins/plugin_placeholder.h
index eb70d35705cc4f9cad64e8fdfc5f7ed6cb1a1e9e..6275284bae9d00319cbaf2e700ea2ad8fe64a898 100644
--- a/chrome/renderer/plugins/plugin_placeholder.h
+++ b/chrome/renderer/plugins/plugin_placeholder.h
@@ -16,10 +16,10 @@
struct ChromeViewHostMsg_GetPluginInfo_Status;
namespace webkit {
-struct WebPluginInfo;
namespace npapi {
class PluginGroup;
}
+struct WebPluginInfo;
}
// Placeholders can be used if a plug-in is missing or not available
@@ -35,6 +35,10 @@ class PluginPlaceholder : public content::RenderViewObserver,
WebKit::WebFrame* frame,
const WebKit::WebPluginParams& params);
+ static PluginPlaceholder* CreateErrorPlugin(
+ content::RenderView* render_view,
+ const FilePath& plugin_path);
+
static PluginPlaceholder* CreateBlockedPlugin(
content::RenderView* render_view,
WebKit::WebFrame* frame,
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/plugins/plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698