diff -r 4f2f89ce4247 -r 303757a437d3 WebCore/plugins/PluginDatabase.h --- a/WebCore/plugins/PluginDatabase.h Fri Sep 17 09:02:29 2010 +0300 +++ b/WebCore/plugins/PluginDatabase.h Mon Oct 04 01:32:07 2010 +0300 @@ -79,6 +79,12 @@ Vector pluginDirectories() const { return m_pluginDirectories; } String MIMETypeForExtension(const String& extension) const; +#if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE) + static bool isPersistentMetadataCacheEnabled(); + static void setPersistentMetadataCacheEnabled(bool isEnabled); + static String persistentMetadataCachePath(); + static void setPersistentMetadataCachePath(const String& persistentMetadataCachePath); +#endif private: void getPluginPathsInDirectories(HashSet&) const; @@ -87,6 +93,10 @@ // Returns whether the plugin was actually added or not (it won't be added if it's a duplicate of an existing plugin). bool add(PassRefPtr); void remove(PluginPackage*); +#if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE) + void loadPersistentMetadataCache(); + void updatePersistentMetadataCache(); +#endif Vector m_pluginDirectories; HashSet m_registeredMIMETypes; @@ -94,6 +104,9 @@ HashMap > m_pluginsByPath; HashMap m_pluginPathsWithTimes; HashMap > m_preferredPlugins; +#if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE) + bool m_persistentMetadataCacheIsLoaded; +#endif }; } // namespace WebCore