| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 PersistentWillBeMember<DirectoryReaderSync> m_reader; | 90 PersistentWillBeMember<DirectoryReaderSync> m_reader; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 DirectoryReaderSync::DirectoryReaderSync(DOMFileSystemBase* fileSystem, const St
ring& fullPath) | 93 DirectoryReaderSync::DirectoryReaderSync(DOMFileSystemBase* fileSystem, const St
ring& fullPath) |
| 94 : DirectoryReaderBase(fileSystem, fullPath) | 94 : DirectoryReaderBase(fileSystem, fullPath) |
| 95 , m_callbacksId(0) | 95 , m_callbacksId(0) |
| 96 , m_errorCode(FileError::OK) | 96 , m_errorCode(FileError::OK) |
| 97 { | 97 { |
| 98 ScriptWrappable::init(this); | |
| 99 } | 98 } |
| 100 | 99 |
| 101 DirectoryReaderSync::~DirectoryReaderSync() | 100 DirectoryReaderSync::~DirectoryReaderSync() |
| 102 { | 101 { |
| 103 } | 102 } |
| 104 | 103 |
| 105 EntrySyncHeapVector DirectoryReaderSync::readEntries(ExceptionState& exceptionSt
ate) | 104 EntrySyncHeapVector DirectoryReaderSync::readEntries(ExceptionState& exceptionSt
ate) |
| 106 { | 105 { |
| 107 if (!m_callbacksId) { | 106 if (!m_callbacksId) { |
| 108 m_callbacksId = filesystem()->readDirectory(this, m_fullPath, adoptPtrWi
llBeNoop(new EntriesCallbackHelper(this)), adoptPtrWillBeNoop(new ErrorCallbackH
elper(this)), DOMFileSystemBase::Synchronous); | 107 m_callbacksId = filesystem()->readDirectory(this, m_fullPath, adoptPtrWi
llBeNoop(new EntriesCallbackHelper(this)), adoptPtrWillBeNoop(new ErrorCallbackH
elper(this)), DOMFileSystemBase::Synchronous); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 121 return result; | 120 return result; |
| 122 } | 121 } |
| 123 | 122 |
| 124 void DirectoryReaderSync::trace(Visitor* visitor) | 123 void DirectoryReaderSync::trace(Visitor* visitor) |
| 125 { | 124 { |
| 126 visitor->trace(m_entries); | 125 visitor->trace(m_entries); |
| 127 DirectoryReaderBase::trace(visitor); | 126 DirectoryReaderBase::trace(visitor); |
| 128 } | 127 } |
| 129 | 128 |
| 130 } // namespace | 129 } // namespace |
| OLD | NEW |