| 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 Lesser General Public | 5 * modify it under the terms of the GNU Lesser 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Lesser General Public License for more details. | 12 * Lesser General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Lesser General Public | 14 * You should have received a copy of the GNU Lesser General Public |
| 15 * License along with this library; if not, write to the Free Software | 15 * License along with this library; if not, write to the Free Software |
| 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U
SA | 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U
SA |
| 17 */ | 17 */ |
| 18 | 18 |
| 19 #include "config.h" | 19 #include "config.h" |
| 20 #include "modules/plugins/DOMPlugin.h" | 20 #include "modules/plugins/DOMPlugin.h" |
| 21 | 21 |
| 22 #include "platform/plugins/PluginData.h" | 22 #include "platform/plugins/PluginData.h" |
| 23 #include "wtf/text/AtomicString.h" | 23 #include "wtf/text/AtomicString.h" |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 | 26 |
| 27 DOMPlugin::DOMPlugin(PluginData* pluginData, LocalFrame* frame, unsigned index) | 27 DOMPlugin::DOMPlugin(PluginData* pluginData, LocalFrame* frame, unsigned index) |
| 28 : FrameDestructionObserver(frame) | 28 : LocalFrameLifecycleObserver(frame) |
| 29 , m_pluginData(pluginData) | 29 , m_pluginData(pluginData) |
| 30 , m_index(index) | 30 , m_index(index) |
| 31 { | 31 { |
| 32 } | 32 } |
| 33 | 33 |
| 34 DOMPlugin::~DOMPlugin() | 34 DOMPlugin::~DOMPlugin() |
| 35 { | 35 { |
| 36 } | 36 } |
| 37 | 37 |
| 38 DEFINE_TRACE(DOMPlugin) | 38 DEFINE_TRACE(DOMPlugin) |
| 39 { | 39 { |
| 40 FrameDestructionObserver::trace(visitor); | 40 LocalFrameLifecycleObserver::trace(visitor); |
| 41 } | 41 } |
| 42 | 42 |
| 43 String DOMPlugin::name() const | 43 String DOMPlugin::name() const |
| 44 { | 44 { |
| 45 return pluginInfo().name; | 45 return pluginInfo().name; |
| 46 } | 46 } |
| 47 | 47 |
| 48 String DOMPlugin::filename() const | 48 String DOMPlugin::filename() const |
| 49 { | 49 { |
| 50 return pluginInfo().file; | 50 return pluginInfo().file; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 79 { | 79 { |
| 80 const Vector<MimeClassInfo>& mimes = m_pluginData->mimes(); | 80 const Vector<MimeClassInfo>& mimes = m_pluginData->mimes(); |
| 81 for (unsigned i = 0; i < mimes.size(); ++i) { | 81 for (unsigned i = 0; i < mimes.size(); ++i) { |
| 82 if (mimes[i].type == propertyName) | 82 if (mimes[i].type == propertyName) |
| 83 return DOMMimeType::create(m_pluginData.get(), frame(), i); | 83 return DOMMimeType::create(m_pluginData.get(), frame(), i); |
| 84 } | 84 } |
| 85 return nullptr; | 85 return nullptr; |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace blink | 88 } // namespace blink |
| OLD | NEW |