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

Unified Diff: Source/modules/filesystem/DirectoryReaderBase.h

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/DirectoryReader.idl ('k') | Source/modules/filesystem/DirectoryReaderSync.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/DirectoryReaderBase.h
diff --git a/Source/modules/filesystem/DirectoryReaderBase.h b/Source/modules/filesystem/DirectoryReaderBase.h
index 27655c52f64365c0d3d6d35974e116b8962050d0..e19a9687c9d0c5086366b7de526f3db6bd2e76cb 100644
--- a/Source/modules/filesystem/DirectoryReaderBase.h
+++ b/Source/modules/filesystem/DirectoryReaderBase.h
@@ -31,6 +31,7 @@
#ifndef DirectoryReaderBase_h
#define DirectoryReaderBase_h
+#include "heap/Handle.h"
#include "modules/filesystem/DOMFileSystemBase.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -38,22 +39,27 @@
namespace WebCore {
-class DirectoryReaderBase : public RefCounted<DirectoryReaderBase> {
+class DirectoryReaderBase : public RefCountedWillBeGarbageCollectedFinalized<DirectoryReaderBase> {
public:
DOMFileSystemBase* filesystem() const { return m_fileSystem.get(); }
void setHasMoreEntries(bool hasMoreEntries) { m_hasMoreEntries = hasMoreEntries; }
virtual ~DirectoryReaderBase() { }
+ virtual void trace(Visitor* visitor)
+ {
+ visitor->trace(m_fileSystem);
+ }
+
protected:
- DirectoryReaderBase(PassRefPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
+ DirectoryReaderBase(PassRefPtrWillBeRawPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
: m_fileSystem(fileSystem)
, m_fullPath(fullPath)
, m_hasMoreEntries(true)
{
}
- RefPtr<DOMFileSystemBase> m_fileSystem;
+ RefPtrWillBeMember<DOMFileSystemBase> m_fileSystem;
// This is a virtual path.
String m_fullPath;
« no previous file with comments | « Source/modules/filesystem/DirectoryReader.idl ('k') | Source/modules/filesystem/DirectoryReaderSync.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698