From b547fd44ca39e90e6416da8a5ffc040fa9d2446c Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Thu, 23 Apr 2009 23:16:27 +0000 Subject: Allow Flash (and other plugins) to be installed without restarting the browser. This works by monitoring the MozillaPlugins registry key and reloading the plugin list afterwards. Note: I'll commit the WebKit change separately, but putting it in this change right now so everything can be reviewed together. BUG=10574 Review URL: http://codereview.chromium.org/88020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14377 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/render_thread.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/renderer/render_thread.h') diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h index d57026e..d50fd96 100644 --- a/chrome/renderer/render_thread.h +++ b/chrome/renderer/render_thread.h @@ -91,6 +91,8 @@ class RenderThread : public RenderThreadBase, return user_script_slave_.get(); } + bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } + // Do DNS prefetch resolution of a hostname. void Resolve(const char* name, size_t length); @@ -129,6 +131,7 @@ class RenderThread : public RenderThreadBase, void OnExtensionHandleMessage(const std::string& message, int channel_id); void OnExtensionHandleEvent(const std::string event_name, const std::string event_data); + void OnPurgePluginListCache(); // Gather usage statistics from the in-memory cache and inform our host. // These functions should be call periodically so that the host can make @@ -157,6 +160,9 @@ class RenderThread : public RenderThreadBase, scoped_refptr devtools_agent_filter_; + // If true, then a GetPlugins call is allowed to rescan the disk. + bool plugin_refresh_allowed_; + DISALLOW_COPY_AND_ASSIGN(RenderThread); }; -- cgit v1.1