diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 15:38:29 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 15:38:29 +0000 |
commit | 8b86363bc6c71aed7d10bef1c496b558faac5628 (patch) | |
tree | 96a77f7782d593b380bc02332935b8c692902341 /chrome/renderer/blocked_plugin.h | |
parent | c500bc9f09f9b28c9dbc2c956abdbb8e7f5e6600 (diff) | |
download | chromium_src-8b86363bc6c71aed7d10bef1c496b558faac5628.zip chromium_src-8b86363bc6c71aed7d10bef1c496b558faac5628.tar.gz chromium_src-8b86363bc6c71aed7d10bef1c496b558faac5628.tar.bz2 |
Disable outdated non-sandboxed plugins.
BUG=47731
TEST=Run with --disable-outdated-plugins
Review URL: http://codereview.chromium.org/3038051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/blocked_plugin.h')
-rw-r--r-- | chrome/renderer/blocked_plugin.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/chrome/renderer/blocked_plugin.h b/chrome/renderer/blocked_plugin.h index 014c489..40a601d 100644 --- a/chrome/renderer/blocked_plugin.h +++ b/chrome/renderer/blocked_plugin.h @@ -11,6 +11,8 @@ #include "webkit/glue/cpp_bound_class.h" #include "webkit/glue/plugins/webview_plugin.h" +class GURL; +class PluginGroup; class RenderView; class BlockedPlugin : public CppBoundClass, @@ -19,10 +21,8 @@ class BlockedPlugin : public CppBoundClass, public: BlockedPlugin(RenderView* render_view, WebKit::WebFrame* frame, - const WebKit::WebPluginParams& params); - - void Load(const CppArgumentList& args, CppVariant* result); - void LoadPlugin(); + const WebKit::WebPluginParams& params, + PluginGroup* group); WebViewPlugin* plugin() { return plugin_; } @@ -38,6 +38,22 @@ class BlockedPlugin : public CppBoundClass, private: virtual ~BlockedPlugin() { } + // Javascript callbacks: + // Load the blocked plugin by calling LoadPlugin() below. + // Takes no arguments, and returns nothing. + void Load(const CppArgumentList& args, CppVariant* result); + + // Update an outdated plugin. Takes one argument, the URL to download the + // latest version, and returns nothing. + void Update(const CppArgumentList& args, CppVariant* result); + + // Tells the browser to navigate to |url| (to download the latest version of + // the plugin there). + void OpenURL(GURL& url); + + // Load the blocked plugin. + void LoadPlugin(); + RenderView* render_view_; WebKit::WebFrame* frame_; WebKit::WebPluginParams plugin_params_; |