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

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

Issue 200373003: Oilpan: make DataObject and SharedWorker heap Supplementables. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing HeapSupplementable<> trace() calls 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/core/workers/SharedWorker.cpp ('k') | Source/modules/filesystem/DraggedIsolatedFileSystem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/DraggedIsolatedFileSystem.h
diff --git a/Source/modules/filesystem/DraggedIsolatedFileSystem.h b/Source/modules/filesystem/DraggedIsolatedFileSystem.h
index b1c6ec7a544c8de04ce8b2e95fdbb600ad878eb2..73119d328f39ce167f31efde78b00c3491fc092d 100644
--- a/Source/modules/filesystem/DraggedIsolatedFileSystem.h
+++ b/Source/modules/filesystem/DraggedIsolatedFileSystem.h
@@ -32,6 +32,7 @@
#define DraggedIsolatedFileSystem_h
#include "core/clipboard/DataObject.h"
+#include "heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/text/WTFString.h"
@@ -39,24 +40,27 @@ namespace WebCore {
class DOMFileSystem;
-class DraggedIsolatedFileSystem FINAL : public Supplement<DataObject> {
+class DraggedIsolatedFileSystem FINAL : public NoBaseWillBeGarbageCollectedFinalized<DraggedIsolatedFileSystem>, public WillBeHeapSupplement<DataObject> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystem);
public:
virtual ~DraggedIsolatedFileSystem();
- static PassOwnPtr<DraggedIsolatedFileSystem> create(const String& filesystemId)
+ static PassOwnPtrWillBeRawPtr<DraggedIsolatedFileSystem> create(const String& filesystemId)
{
- return adoptPtr(new DraggedIsolatedFileSystem(filesystemId));
+ return adoptPtrWillBeNoop(new DraggedIsolatedFileSystem(filesystemId));
}
const String& filesystemId() const { return m_filesystemId; }
DOMFileSystem* getDOMFileSystem(ExecutionContext*);
static const char* supplementName();
- static DraggedIsolatedFileSystem* from(DataObject* dataObject) { return static_cast<DraggedIsolatedFileSystem*>(Supplement<DataObject>::from(dataObject, supplementName())); }
+ static DraggedIsolatedFileSystem* from(DataObject*);
+
+ void trace(Visitor*);
private:
DraggedIsolatedFileSystem(const String& filesystemId);
- RefPtr<DOMFileSystem> m_filesystem;
+ RefPtrWillBeMember<DOMFileSystem> m_filesystem;
String m_filesystemId;
};
« no previous file with comments | « Source/core/workers/SharedWorker.cpp ('k') | Source/modules/filesystem/DraggedIsolatedFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698