This source file includes following definitions.
- createReader
- getFile
- getDirectory
- removeRecursively
- trace
#include "config.h"
#include "modules/filesystem/DirectoryEntry.h"
#include "core/fileapi/FileError.h"
#include "core/html/VoidCallback.h"
#include "modules/filesystem/DirectoryReader.h"
#include "modules/filesystem/EntryCallback.h"
#include "modules/filesystem/ErrorCallback.h"
namespace WebCore {
DirectoryEntry::DirectoryEntry(PassRefPtrWillBeRawPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
: Entry(fileSystem, fullPath)
{
ScriptWrappable::init(this);
}
PassRefPtrWillBeRawPtr<DirectoryReader> DirectoryEntry::createReader()
{
return DirectoryReader::create(m_fileSystem, m_fullPath);
}
void DirectoryEntry::getFile(const String& path, const Dictionary& options, PassOwnPtr<EntryCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback)
{
FileSystemFlags flags(options);
m_fileSystem->getFile(this, path, flags, successCallback, errorCallback);
}
void DirectoryEntry::getDirectory(const String& path, const Dictionary& options, PassOwnPtr<EntryCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback)
{
FileSystemFlags flags(options);
m_fileSystem->getDirectory(this, path, flags, successCallback, errorCallback);
}
void DirectoryEntry::removeRecursively(PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback) const
{
m_fileSystem->removeRecursively(this, successCallback, errorCallback);
}
void DirectoryEntry::trace(Visitor* visitor)
{
Entry::trace(visitor);
}
}