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

Unified Diff: webkit/plugins/ppapi/plugin_delegate.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 | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppapi_webplugin_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/plugin_delegate.h
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index 1514a96348ca389bc55e4aea86309b73a42a2597..96a968123205eb86599e56ea772238b381d0d3e9 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -32,10 +32,10 @@
#include "webkit/quota/quota_types.h"
class GURL;
-struct PP_HostResolver_Private_Hint;
-struct PP_NetAddress_Private;
class SkBitmap;
class TransportDIB;
+struct PP_HostResolver_Private_Hint;
+struct PP_NetAddress_Private;
namespace base {
class MessageLoopProxy;
@@ -69,6 +69,7 @@ class PlatformCanvas;
namespace WebKit {
class WebFileChooserCompletion;
class WebGamepads;
+class WebPlugin;
struct WebCursorInfo;
struct WebFileChooserParams;
}
@@ -333,6 +334,11 @@ class PluginDelegate {
// sad plugin screen with. Returns NULL on failure.
virtual SkBitmap* GetSadPluginBitmap() = 0;
+ // Creates a replacement plug-in that is shown when the plug-in at |file_path|
+ // couldn't be loaded.
+ virtual WebKit::WebPlugin* CreatePluginReplacement(
+ const FilePath& file_path) = 0;
+
// The caller will own the pointer returned from this.
virtual PlatformImage2D* CreateImage2D(int width, int height) = 0;
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppapi_webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698