Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: Source/core/plugins/DOMPlugin.cpp

Issue 169293002: Oilpan: Remove GC_INFO_{DEFINE,DECLARE} macros (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixheaptest Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/plugins/DOMPlugin.h ('k') | Source/core/plugins/DOMPluginArray.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "core/plugins/DOMPlugin.h" 20 #include "core/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 WebCore { 25 namespace WebCore {
26 26
27 DEFINE_GC_INFO(DOMPlugin);
28
29 DOMPlugin::DOMPlugin(PluginData* pluginData, Frame* frame, unsigned index) 27 DOMPlugin::DOMPlugin(PluginData* pluginData, Frame* frame, unsigned index)
30 : FrameDestructionObserver(frame) 28 : FrameDestructionObserver(frame)
31 , m_pluginData(pluginData) 29 , m_pluginData(pluginData)
32 , m_index(index) 30 , m_index(index)
33 { 31 {
34 ScriptWrappable::init(this); 32 ScriptWrappable::init(this);
35 } 33 }
36 34
37 DOMPlugin::~DOMPlugin() 35 DOMPlugin::~DOMPlugin()
38 { 36 {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 PassRefPtrWillBeRawPtr<DOMMimeType> DOMPlugin::namedItem(const AtomicString& pro pertyName) 83 PassRefPtrWillBeRawPtr<DOMMimeType> DOMPlugin::namedItem(const AtomicString& pro pertyName)
86 { 84 {
87 const Vector<MimeClassInfo>& mimes = m_pluginData->mimes(); 85 const Vector<MimeClassInfo>& mimes = m_pluginData->mimes();
88 for (unsigned i = 0; i < mimes.size(); ++i) 86 for (unsigned i = 0; i < mimes.size(); ++i)
89 if (mimes[i].type == propertyName) 87 if (mimes[i].type == propertyName)
90 return DOMMimeType::create(m_pluginData.get(), m_frame, i).get(); 88 return DOMMimeType::create(m_pluginData.get(), m_frame, i).get();
91 return nullptr; 89 return nullptr;
92 } 90 }
93 91
94 } // namespace WebCore 92 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/plugins/DOMPlugin.h ('k') | Source/core/plugins/DOMPluginArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698