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

Unified Diff: webkit/plugins/npapi/webplugin_page_delegate.h

Issue 10093011: Show a replacement plug-in for loading errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup 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
Index: webkit/plugins/npapi/webplugin_page_delegate.h
diff --git a/webkit/plugins/npapi/webplugin_page_delegate.h b/webkit/plugins/npapi/webplugin_page_delegate.h
index 3176ccd9e7e5a379f230b3708d8745faeea3a72a..8b87ce2c9ff440cd2e5e81d641e4d47480062c67 100644
--- a/webkit/plugins/npapi/webplugin_page_delegate.h
+++ b/webkit/plugins/npapi/webplugin_page_delegate.h
@@ -13,6 +13,7 @@ class FilePath;
namespace WebKit {
class WebCookieJar;
+class WebPlugin;
}
namespace webkit {
@@ -31,6 +32,10 @@ class WebPluginPageDelegate {
const FilePath& file_path,
const std::string& mime_type) = 0;
+ // Caled to create a replacement plug-in when loading a plug-in failed.
+ virtual WebKit::WebPlugin* CreatePluginReplacement(
+ const FilePath& file_path) = 0;
+
// Called when a windowed plugin is created.
// Lets the view delegate create anything it is using to wrap the plugin.
virtual void CreatedPluginWindow(

Powered by Google App Engine
This is Rietveld 408576698