diff options
Diffstat (limited to 'WebCore/plugins/PluginDatabase.h')
-rw-r--r-- | WebCore/plugins/PluginDatabase.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/WebCore/plugins/PluginDatabase.h b/WebCore/plugins/PluginDatabase.h index 287857e..b1e1525 100644 --- a/WebCore/plugins/PluginDatabase.h +++ b/WebCore/plugins/PluginDatabase.h @@ -84,6 +84,12 @@ namespace WebCore { Vector<String> 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<String>&) const; @@ -92,6 +98,10 @@ namespace WebCore { // 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<PluginPackage>); void remove(PluginPackage*); +#if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE) + void loadPersistentMetadataCache(); + void updatePersistentMetadataCache(); +#endif Vector<String> m_pluginDirectories; HashSet<String> m_registeredMIMETypes; @@ -105,6 +115,9 @@ namespace WebCore { friend class ::android::WebSettings; #endif HashMap<String, RefPtr<PluginPackage> > m_preferredPlugins; +#if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE) + bool m_persistentMetadataCacheIsLoaded; +#endif }; } // namespace WebCore |