From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/plugins/DOMPlugin.h | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'Source/WebCore/plugins/DOMPlugin.h') diff --git a/Source/WebCore/plugins/DOMPlugin.h b/Source/WebCore/plugins/DOMPlugin.h index 908b94f91..91124eea1 100644 --- a/Source/WebCore/plugins/DOMPlugin.h +++ b/Source/WebCore/plugins/DOMPlugin.h @@ -17,15 +17,13 @@ Boston, MA 02110-1301, USA. */ -#ifndef DOMPlugin_h -#define DOMPlugin_h +#pragma once #include "FrameDestructionObserver.h" #include "DOMMimeType.h" #include "ScriptWrappable.h" -#include -#include #include +#include namespace WebCore { @@ -34,7 +32,7 @@ class PluginData; class DOMPlugin : public ScriptWrappable, public RefCounted, public FrameDestructionObserver { public: - static PassRefPtr create(PluginData* pluginData, Frame* frame, unsigned index) { return adoptRef(new DOMPlugin(pluginData, frame, index)); } + static Ref create(PluginData* pluginData, Frame* frame, PluginInfo pluginInfo) { return adoptRef(*new DOMPlugin(pluginData, frame, WTFMove(pluginInfo))); } ~DOMPlugin(); String name() const; @@ -43,18 +41,14 @@ public: unsigned length() const; - PassRefPtr item(unsigned index); - bool canGetItemsForName(const AtomicString& propertyName); - PassRefPtr namedItem(const AtomicString& propertyName); + RefPtr item(unsigned index); + RefPtr namedItem(const AtomicString& propertyName); + Vector supportedPropertyNames(); private: - const PluginInfo& pluginInfo() const { return m_pluginData->plugins()[m_index]; } - - DOMPlugin(PluginData*, Frame*, unsigned index); + DOMPlugin(PluginData*, Frame*, PluginInfo); RefPtr m_pluginData; - unsigned m_index; + PluginInfo m_pluginInfo; }; } // namespace WebCore - -#endif // Plugin_h -- cgit v1.2.1