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

Side by Side Diff: Source/core/fileapi/FileList.cpp

Issue 176853004: Oilpan: move core/fileapi to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/fileapi/FileList.h" 27 #include "core/fileapi/FileList.h"
28 28
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 DEFINE_GC_INFO(FileList);
33
32 FileList::FileList() 34 FileList::FileList()
33 { 35 {
34 ScriptWrappable::init(this); 36 ScriptWrappable::init(this);
35 } 37 }
36 38
37 File* FileList::item(unsigned index) const 39 File* FileList::item(unsigned index) const
38 { 40 {
39 if (index >= m_files.size()) 41 if (index >= m_files.size())
40 return 0; 42 return 0;
41 return m_files[index].get(); 43 return m_files[index].get();
42 } 44 }
43 45
44 Vector<String> FileList::paths() const 46 Vector<String> FileList::paths() const
45 { 47 {
46 Vector<String> paths; 48 Vector<String> paths;
47 for (unsigned i = 0; i < m_files.size(); ++i) 49 for (unsigned i = 0; i < m_files.size(); ++i)
48 paths.append(m_files[i]->path()); 50 paths.append(m_files[i]->path());
49 51
50 return paths; 52 return paths;
51 } 53 }
52 54
55 void FileList::trace(Visitor* visitor)
56 {
57 visitor->trace(m_files);
58 }
59
53 } // namespace WebCore 60 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698