WebCore/plugins/PluginPackage.h
changeset 2 303757a437d3
parent 0 4f2f89ce4247
--- 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<PluginPackage> createPackage(const String& path, const time_t& lastModified);
+#if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE)
+        static PassRefPtr<PluginPackage> 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<PluginPackage> m_freeLibraryTimer;
 
         PluginQuirkSet m_quirks;
+#if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE)
+        String m_fullMIMEDescription;
+        bool m_infoIsFromCache;
+#endif
     };
 
     struct PluginPackageHash {