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; |