diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-20 10:16:47 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-20 10:16:47 +0000 |
commit | 4503616f13ffe30793168624b93d1c93702d9db1 (patch) | |
tree | fe344dc1f11c39df51d246f9a90d4a9e7aeeb1cd /webkit/plugins/npapi/plugin_list.h | |
parent | a6512f52d3e7349b2f603d8823dd809f20404191 (diff) | |
download | chromium_src-4503616f13ffe30793168624b93d1c93702d9db1.zip chromium_src-4503616f13ffe30793168624b93d1c93702d9db1.tar.gz chromium_src-4503616f13ffe30793168624b93d1c93702d9db1.tar.bz2 |
Add a PluginList::stale() method that returns true if the list of plugins hasn't been loaded yet, or has been invalidated.
BUG=69516
TEST=no dcheck
Review URL: http://codereview.chromium.org/7399022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93180 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/npapi/plugin_list.h')
-rw-r--r-- | webkit/plugins/npapi/plugin_list.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/webkit/plugins/npapi/plugin_list.h b/webkit/plugins/npapi/plugin_list.h index 255b2f8..e575a91 100644 --- a/webkit/plugins/npapi/plugin_list.h +++ b/webkit/plugins/npapi/plugin_list.h @@ -62,9 +62,6 @@ class PluginList { // by a command line switch. static bool DebugPluginLoading(); - // Returns true iff the plugin list has been loaded already. - bool PluginsLoaded(); - // Cause the plugin list to refresh next time they are accessed, regardless // of whether they are already loaded. void RefreshPlugins(); @@ -206,6 +203,10 @@ class PluginList { // version. void DisableOutdatedPluginGroups(); + // Returns true if the plugin list is stale, i.e. it will need to be + // (re)loaded on the next access. + bool stale() { return plugins_need_refresh_; } + virtual ~PluginList(); protected: @@ -297,8 +298,6 @@ class PluginList { // // Internals // - // Set to true when the LoadPlugins method has finished. - bool plugins_loaded_; // If true, we reload plugins even if they've been loaded already. bool plugins_need_refresh_; |