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

Unified Diff: content/public/renderer/content_renderer_client.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/plugins/plugin_placeholder.cc ('k') | content/renderer/mock_content_renderer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 10b5902d1210d118d8d692e464d00ab4db3b23e4..1f6f10805b78be593735285fcd60df09da5d2aec 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -14,6 +14,7 @@
#include "content/public/common/content_client.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityState.h"
+class FilePath;
class GURL;
class SkBitmap;
@@ -31,6 +32,7 @@ namespace webkit {
namespace ppapi {
class PpapiInterfaceFactoryManager;
}
+struct WebPluginInfo;
}
namespace media {
@@ -83,6 +85,12 @@ class ContentRendererClient {
const WebKit::WebPluginParams& params,
WebKit::WebPlugin** plugin) = 0;
+ // Creates a replacement plug-in that is shown when the plug-in at |file_path|
+ // couldn't be loaded. This allows the embedder to show a custom placeholder.
+ virtual WebKit::WebPlugin* CreatePluginReplacement(
+ RenderView* render_view,
+ const FilePath& plugin_path) = 0;
+
// Returns true if the embedder has an error page to show for the given http
// status code. If so |error_domain| should be set to according to WebURLError
// and the embedder's GetNavigationErrorHtml will be called afterwards to get
« no previous file with comments | « chrome/renderer/plugins/plugin_placeholder.cc ('k') | content/renderer/mock_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698