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

Unified Diff: Source/modules/filesystem/EntrySync.cpp

Issue 188503002: Oilpan: add transition types to FileSystem APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/filesystem/EntrySync.h ('k') | Source/modules/filesystem/EntrySync.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/EntrySync.cpp
diff --git a/Source/modules/filesystem/EntrySync.cpp b/Source/modules/filesystem/EntrySync.cpp
index 9c12e1499ba8cb05733e459ae0b107b60a26ee64..49bb50546cdbc543e4158375bda487183f05436c 100644
--- a/Source/modules/filesystem/EntrySync.cpp
+++ b/Source/modules/filesystem/EntrySync.cpp
@@ -43,28 +43,28 @@
namespace WebCore {
-PassRefPtr<EntrySync> EntrySync::create(EntryBase* entry)
+PassRefPtrWillBeRawPtr<EntrySync> EntrySync::create(EntryBase* entry)
{
if (entry->isFile())
return FileEntrySync::create(entry->m_fileSystem, entry->m_fullPath);
return DirectoryEntrySync::create(entry->m_fileSystem, entry->m_fullPath);
}
-PassRefPtr<Metadata> EntrySync::getMetadata(ExceptionState& exceptionState)
+PassRefPtrWillBeRawPtr<Metadata> EntrySync::getMetadata(ExceptionState& exceptionState)
{
MetadataSyncCallbackHelper helper;
m_fileSystem->getMetadata(this, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous);
return helper.getResult(exceptionState);
}
-PassRefPtr<EntrySync> EntrySync::moveTo(PassRefPtr<DirectoryEntrySync> parent, const String& name, ExceptionState& exceptionState) const
+PassRefPtrWillBeRawPtr<EntrySync> EntrySync::moveTo(PassRefPtrWillBeRawPtr<DirectoryEntrySync> parent, const String& name, ExceptionState& exceptionState) const
{
EntrySyncCallbackHelper helper;
m_fileSystem->move(this, parent.get(), name, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous);
return helper.getResult(exceptionState);
}
-PassRefPtr<EntrySync> EntrySync::copyTo(PassRefPtr<DirectoryEntrySync> parent, const String& name, ExceptionState& exceptionState) const
+PassRefPtrWillBeRawPtr<EntrySync> EntrySync::copyTo(PassRefPtrWillBeRawPtr<DirectoryEntrySync> parent, const String& name, ExceptionState& exceptionState) const
{
EntrySyncCallbackHelper helper;
m_fileSystem->copy(this, parent.get(), name, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous);
@@ -78,17 +78,22 @@ void EntrySync::remove(ExceptionState& exceptionState) const
helper.getResult(exceptionState);
}
-PassRefPtr<EntrySync> EntrySync::getParent() const
+PassRefPtrWillBeRawPtr<EntrySync> EntrySync::getParent() const
{
// Sync verion of getParent doesn't throw exceptions.
String parentPath = DOMFilePath::getDirectory(fullPath());
return DirectoryEntrySync::create(m_fileSystem, parentPath);
}
-EntrySync::EntrySync(PassRefPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
+EntrySync::EntrySync(PassRefPtrWillBeRawPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
: EntryBase(fileSystem, fullPath)
{
ScriptWrappable::init(this);
}
+void EntrySync::trace(Visitor* visitor)
+{
+ EntryBase::trace(visitor);
+}
+
}
« no previous file with comments | « Source/modules/filesystem/EntrySync.h ('k') | Source/modules/filesystem/EntrySync.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698