diff -r 4f2f89ce4247 -r 303757a437d3 WebCore/plugins/PluginPackage.h --- a/WebCore/plugins/PluginPackage.h Fri Sep 17 09:02:29 2010 +0300 +++ b/WebCore/plugins/PluginPackage.h Mon Oct 04 01:32:07 2010 +0300 @@ -49,6 +49,9 @@ public: ~PluginPackage(); static PassRefPtr createPackage(const String& path, const time_t& lastModified); +#if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE) + static PassRefPtr createPackageFromCache(const String& path, const time_t& lastModified, const String& name, const String& description, const String& mimeDescription); +#endif const String& name() const { return m_name; } const String& description() const { return m_description; } @@ -80,6 +83,11 @@ NPInterface* npInterface() const { return m_npInterface; } #endif // OS(SYMBIAN) +#if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE) + bool ensurePluginLoaded(); + void setMIMEDescription(const String& mimeDescription); + String fullMIMEDescription() const { return m_fullMIMEDescription;} +#endif private: PluginPackage(const String& path, const time_t& lastModified); @@ -121,6 +129,10 @@ Timer m_freeLibraryTimer; PluginQuirkSet m_quirks; +#if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE) + String m_fullMIMEDescription; + bool m_infoIsFromCache; +#endif }; struct PluginPackageHash {