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

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

Issue 552733003: Oilpan: make DOMWindowProperty a GC mixin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pacify GC plugin wrt LocalDOMWindow::trace() 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 15 matching lines...) Expand all
26 #include "wtf/Vector.h" 26 #include "wtf/Vector.h"
27 #include "wtf/text/AtomicString.h" 27 #include "wtf/text/AtomicString.h"
28 28
29 namespace blink { 29 namespace blink {
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 void DOMPluginArray::trace(Visitor* visitor)
37 { 37 {
38 DOMWindowProperty::trace(visitor);
38 } 39 }
39 40
40 unsigned DOMPluginArray::length() const 41 unsigned DOMPluginArray::length() const
41 { 42 {
42 PluginData* data = pluginData(); 43 PluginData* data = pluginData();
43 if (!data) 44 if (!data)
44 return 0; 45 return 0;
45 return data->plugins().size(); 46 return data->plugins().size();
46 } 47 }
47 48
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 { 92 {
92 if (!m_frame) 93 if (!m_frame)
93 return 0; 94 return 0;
94 Page* page = m_frame->page(); 95 Page* page = m_frame->page();
95 if (!page) 96 if (!page)
96 return 0; 97 return 0;
97 return page->pluginData(); 98 return page->pluginData();
98 } 99 }
99 100
100 } // namespace blink 101 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698