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

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

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update OilpanExpectations Created 6 years, 3 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
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 * Copyright (C) 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public 6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 19 matching lines...) Expand all
30 30
31 DOMPluginArray::DOMPluginArray(LocalFrame* frame) 31 DOMPluginArray::DOMPluginArray(LocalFrame* frame)
32 : DOMWindowProperty(frame) 32 : DOMWindowProperty(frame)
33 { 33 {
34 } 34 }
35 35
36 DOMPluginArray::~DOMPluginArray() 36 DOMPluginArray::~DOMPluginArray()
37 { 37 {
38 } 38 }
39 39
40 void DOMPluginArray::trace(Visitor* visitor)
41 {
42 DOMWindowProperty::trace(visitor);
43 }
44
40 unsigned DOMPluginArray::length() const 45 unsigned DOMPluginArray::length() const
41 { 46 {
42 PluginData* data = pluginData(); 47 PluginData* data = pluginData();
43 if (!data) 48 if (!data)
44 return 0; 49 return 0;
45 return data->plugins().size(); 50 return data->plugins().size();
46 } 51 }
47 52
48 PassRefPtrWillBeRawPtr<DOMPlugin> DOMPluginArray::item(unsigned index) 53 PassRefPtrWillBeRawPtr<DOMPlugin> DOMPluginArray::item(unsigned index)
49 { 54 {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 { 96 {
92 if (!m_frame) 97 if (!m_frame)
93 return 0; 98 return 0;
94 Page* page = m_frame->page(); 99 Page* page = m_frame->page();
95 if (!page) 100 if (!page)
96 return 0; 101 return 0;
97 return page->pluginData(); 102 return page->pluginData();
98 } 103 }
99 104
100 } // namespace blink 105 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698