diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-08 17:46:44 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-08 17:46:44 +0000 |
commit | a22d8aec6db00cc7389dd14144b0fbbfeeb2c22e (patch) | |
tree | f7f07cb710cd20ec3ec07072bff8d52655e26f21 /webkit/glue | |
parent | b0a52f7440bba5e8865afadc3c4c1b50cd531ecf (diff) | |
download | chromium_src-a22d8aec6db00cc7389dd14144b0fbbfeeb2c22e.zip chromium_src-a22d8aec6db00cc7389dd14144b0fbbfeeb2c22e.tar.gz chromium_src-a22d8aec6db00cc7389dd14144b0fbbfeeb2c22e.tar.bz2 |
Implement NPN_reloadPlugins.
The one catch is that in multiprocess Chromium, if reloadPages
is true, we only reload pages that are in the same process.
This is probably what is wanted most of the time (to reload the
page that triggered this) and avoids unnecessary reloads.
BUG=29018
TEST=Covered by existing layout tests.
Review URL: http://codereview.chromium.org/4618001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r-- | webkit/glue/plugins/plugin_host.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/webkit/glue/plugins/plugin_host.cc b/webkit/glue/plugins/plugin_host.cc index 2e68dff..31a168a 100644 --- a/webkit/glue/plugins/plugin_host.cc +++ b/webkit/glue/plugins/plugin_host.cc @@ -15,7 +15,10 @@ #include "base/sys_string_conversions.h" #include "base/utf_string_conversions.h" #include "net/base/net_util.h" +#include "third_party/npapi/bindings/npapi_extensions.h" +#include "third_party/npapi/bindings/npruntime.h" #include "third_party/WebKit/WebKit/chromium/public/WebBindings.h" +#include "third_party/WebKit/WebKit/chromium/public/WebKit.h" #include "webkit/glue/webkit_glue.h" #include "webkit/glue/plugins/default_plugin_shared.h" #include "webkit/glue/plugins/npapi_extension_thunk.h" @@ -25,8 +28,6 @@ #include "webkit/glue/plugins/plugin_stream_url.h" #include "webkit/glue/plugins/webplugin_delegate.h" #include "webkit/glue/plugins/webplugininfo.h" -#include "third_party/npapi/bindings/npapi_extensions.h" -#include "third_party/npapi/bindings/npruntime.h" using WebKit::WebBindings; @@ -307,9 +308,8 @@ uint32_t NPN_MemFlush(uint32_t size) { // This is for dynamic discovery of new plugins. // Should force a re-scan of the plugins directory to load new ones. -void NPN_ReloadPlugins(NPBool reloadPages) { - // TODO: implement me - DVLOG(1) << "NPN_ReloadPlugin is not implemented yet."; +void NPN_ReloadPlugins(NPBool reload_pages) { + WebKit::resetPluginCache(reload_pages); } // Requests a range of bytes for a seekable stream. |