Index: Source/modules/filesystem/Metadata.h |
diff --git a/Source/modules/filesystem/Metadata.h b/Source/modules/filesystem/Metadata.h |
index d4681ed9b9b702357d17ef273e46a22d4b9f7678..678bcee5625cdb960954d576b1aca170be209828 100644 |
--- a/Source/modules/filesystem/Metadata.h |
+++ b/Source/modules/filesystem/Metadata.h |
@@ -32,27 +32,30 @@ |
#define Metadata_h |
#include "bindings/v8/ScriptWrappable.h" |
+#include "heap/Handle.h" |
#include "platform/FileMetadata.h" |
#include "wtf/RefCounted.h" |
namespace WebCore { |
-class Metadata : public RefCounted<Metadata>, public ScriptWrappable { |
+class Metadata : public RefCountedWillBeGarbageCollectedFinalized<Metadata>, public ScriptWrappable { |
public: |
- static PassRefPtr<Metadata> create(const FileMetadata& platformMetadata) |
+ static PassRefPtrWillBeRawPtr<Metadata> create(const FileMetadata& platformMetadata) |
{ |
- return adoptRef(new Metadata(platformMetadata)); |
+ return adoptRefWillBeNoop(new Metadata(platformMetadata)); |
} |
- static PassRefPtr<Metadata> create(Metadata* metadata) |
+ static PassRefPtrWillBeRawPtr<Metadata> create(Metadata* metadata) |
{ |
- return adoptRef(new Metadata(metadata->m_platformMetadata)); |
+ return adoptRefWillBeNoop(new Metadata(metadata->m_platformMetadata)); |
} |
// Needs to return epoch time in milliseconds for Date while FileMetadata's modificationTime is in seconds. |
double modificationTime() const { return m_platformMetadata.modificationTime * 1000.0; } |
unsigned long long size() const { return static_cast<unsigned long long>(m_platformMetadata.length); } |
+ void trace(Visitor*) { } |
+ |
private: |
explicit Metadata(const FileMetadata& platformMetadata) |
: m_platformMetadata(platformMetadata) |