OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 } | 80 } |
81 | 81 |
82 private: | 82 private: |
83 PersistentWillBeMember<DirectoryReader> m_reader; | 83 PersistentWillBeMember<DirectoryReader> m_reader; |
84 }; | 84 }; |
85 | 85 |
86 DirectoryReader::DirectoryReader(DOMFileSystemBase* fileSystem, const String& fu
llPath) | 86 DirectoryReader::DirectoryReader(DOMFileSystemBase* fileSystem, const String& fu
llPath) |
87 : DirectoryReaderBase(fileSystem, fullPath) | 87 : DirectoryReaderBase(fileSystem, fullPath) |
88 , m_isReading(false) | 88 , m_isReading(false) |
89 { | 89 { |
90 ScriptWrappable::init(this); | |
91 } | 90 } |
92 | 91 |
93 DirectoryReader::~DirectoryReader() | 92 DirectoryReader::~DirectoryReader() |
94 { | 93 { |
95 } | 94 } |
96 | 95 |
97 void DirectoryReader::readEntries(PassOwnPtrWillBeRawPtr<EntriesCallback> entrie
sCallback, PassOwnPtrWillBeRawPtr<ErrorCallback> errorCallback) | 96 void DirectoryReader::readEntries(PassOwnPtrWillBeRawPtr<EntriesCallback> entrie
sCallback, PassOwnPtrWillBeRawPtr<ErrorCallback> errorCallback) |
98 { | 97 { |
99 if (!m_isReading) { | 98 if (!m_isReading) { |
100 m_isReading = true; | 99 m_isReading = true; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 void DirectoryReader::trace(Visitor* visitor) | 146 void DirectoryReader::trace(Visitor* visitor) |
148 { | 147 { |
149 visitor->trace(m_entries); | 148 visitor->trace(m_entries); |
150 visitor->trace(m_error); | 149 visitor->trace(m_error); |
151 visitor->trace(m_entriesCallback); | 150 visitor->trace(m_entriesCallback); |
152 visitor->trace(m_errorCallback); | 151 visitor->trace(m_errorCallback); |
153 DirectoryReaderBase::trace(visitor); | 152 DirectoryReaderBase::trace(visitor); |
154 } | 153 } |
155 | 154 |
156 } | 155 } |
OLD | NEW |