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

Unified Diff: Source/modules/filesystem/Metadata.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
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)
« no previous file with comments | « Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp ('k') | Source/modules/filesystem/Metadata.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698