diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 13:32:29 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 13:32:29 +0000 |
commit | 851b1eb7c1ccf13b7fb7627bca78f7aefd03c67c (patch) | |
tree | a409d4ec9b6804999d0ea4bf25750d6e896f90ba /chrome/renderer/blocked_plugin.h | |
parent | b089b89cabbb56d499dcbe2ee070e20710d362ef (diff) | |
download | chromium_src-851b1eb7c1ccf13b7fb7627bca78f7aefd03c67c.zip chromium_src-851b1eb7c1ccf13b7fb7627bca78f7aefd03c67c.tar.gz chromium_src-851b1eb7c1ccf13b7fb7627bca78f7aefd03c67c.tar.bz2 |
Disable outdated non-sandboxed plugins.
Relanding r55227, which had a compile error.
BUG=47731
TEST=Run with --disable-outdated-plugins
Review URL: http://codereview.chromium.org/3071028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55394 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_; |