| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 3 | 3 |
| 4 This library is free software; you can redistribute it and/or | 4 This library is free software; you can redistribute it and/or |
| 5 modify it under the terms of the GNU Library General Public | 5 modify it under the terms of the GNU Library General Public |
| 6 License as published by the Free Software Foundation; either | 6 License as published by the Free Software Foundation; either |
| 7 version 2 of the License, or (at your option) any later version. | 7 version 2 of the License, or (at your option) any later version. |
| 8 | 8 |
| 9 This library is distributed in the hope that it will be useful, | 9 This library is distributed in the hope that it will be useful, |
| 10 but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "core/plugins/DOMMimeType.h" | 25 #include "core/plugins/DOMMimeType.h" |
| 26 #include "wtf/Forward.h" | 26 #include "wtf/Forward.h" |
| 27 #include "wtf/RefCounted.h" | 27 #include "wtf/RefCounted.h" |
| 28 #include "wtf/RefPtr.h" | 28 #include "wtf/RefPtr.h" |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 class Plugin; | 32 class Plugin; |
| 33 class PluginData; | 33 class PluginData; |
| 34 | 34 |
| 35 class DOMPlugin : public ScriptWrappable, public RefCounted<DOMPlugin>, public F
rameDestructionObserver { | 35 class DOMPlugin FINAL : public ScriptWrappable, public RefCounted<DOMPlugin>, pu
blic FrameDestructionObserver { |
| 36 public: | 36 public: |
| 37 static PassRefPtr<DOMPlugin> create(PluginData* pluginData, Frame* frame, un
signed index) { return adoptRef(new DOMPlugin(pluginData, frame, index)); } | 37 static PassRefPtr<DOMPlugin> create(PluginData* pluginData, Frame* frame, un
signed index) { return adoptRef(new DOMPlugin(pluginData, frame, index)); } |
| 38 ~DOMPlugin(); | 38 virtual ~DOMPlugin(); |
| 39 | 39 |
| 40 String name() const; | 40 String name() const; |
| 41 String filename() const; | 41 String filename() const; |
| 42 String description() const; | 42 String description() const; |
| 43 | 43 |
| 44 unsigned length() const; | 44 unsigned length() const; |
| 45 | 45 |
| 46 PassRefPtr<DOMMimeType> item(unsigned index); | 46 PassRefPtr<DOMMimeType> item(unsigned index); |
| 47 bool canGetItemsForName(const AtomicString& propertyName); | 47 bool canGetItemsForName(const AtomicString& propertyName); |
| 48 PassRefPtr<DOMMimeType> namedItem(const AtomicString& propertyName); | 48 PassRefPtr<DOMMimeType> namedItem(const AtomicString& propertyName); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 const PluginInfo& pluginInfo() const { return m_pluginData->plugins()[m_inde
x]; } | 51 const PluginInfo& pluginInfo() const { return m_pluginData->plugins()[m_inde
x]; } |
| 52 | 52 |
| 53 DOMPlugin(PluginData*, Frame*, unsigned index); | 53 DOMPlugin(PluginData*, Frame*, unsigned index); |
| 54 RefPtr<PluginData> m_pluginData; | 54 RefPtr<PluginData> m_pluginData; |
| 55 unsigned m_index; | 55 unsigned m_index; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace WebCore | 58 } // namespace WebCore |
| 59 | 59 |
| 60 #endif // Plugin_h | 60 #endif // Plugin_h |
| OLD | NEW |