This source file includes following definitions.
- getMetadata
- moveTo
- copyTo
- remove
- getParent
- trace
#include "config.h"
#include "modules/filesystem/Entry.h"
#include "core/dom/ExecutionContext.h"
#include "core/fileapi/FileError.h"
#include "core/html/VoidCallback.h"
#include "modules/filesystem/DirectoryEntry.h"
#include "modules/filesystem/EntryCallback.h"
#include "modules/filesystem/ErrorCallback.h"
#include "modules/filesystem/FileSystemCallbacks.h"
#include "modules/filesystem/MetadataCallback.h"
#include "platform/weborigin/SecurityOrigin.h"
#include "wtf/text/StringBuilder.h"
namespace WebCore {
Entry::Entry(PassRefPtrWillBeRawPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
: EntryBase(fileSystem, fullPath)
{
ScriptWrappable::init(this);
}
void Entry::getMetadata(PassOwnPtr<MetadataCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback)
{
m_fileSystem->getMetadata(this, successCallback, errorCallback);
}
void Entry::moveTo(PassRefPtrWillBeRawPtr<DirectoryEntry> parent, const String& name, PassOwnPtr<EntryCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback) const
{
m_fileSystem->move(this, parent.get(), name, successCallback, errorCallback);
}
void Entry::copyTo(PassRefPtrWillBeRawPtr<DirectoryEntry> parent, const String& name, PassOwnPtr<EntryCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback) const
{
m_fileSystem->copy(this, parent.get(), name, successCallback, errorCallback);
}
void Entry::remove(PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback) const
{
m_fileSystem->remove(this, successCallback, errorCallback);
}
void Entry::getParent(PassOwnPtr<EntryCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback) const
{
m_fileSystem->getParent(this, successCallback, errorCallback);
}
void Entry::trace(Visitor* visitor)
{
EntryBase::trace(visitor);
}
}