Index: Source/core/clipboard/DataTransferItem.h |
diff --git a/Source/core/clipboard/DataTransferItem.h b/Source/core/clipboard/DataTransferItem.h |
index 74dd384e67b896ed7b2ee278a1bf89b37871d31b..ba5ac8b33ea736ab4363d6de718c2a1d6716751e 100644 |
--- a/Source/core/clipboard/DataTransferItem.h |
+++ b/Source/core/clipboard/DataTransferItem.h |
@@ -32,6 +32,7 @@ |
#define DataTransferItem_h |
#include "bindings/v8/ScriptWrappable.h" |
+#include "heap/Handle.h" |
#include "wtf/Forward.h" |
#include "wtf/RefCounted.h" |
#include "wtf/RefPtr.h" |
@@ -45,9 +46,10 @@ class File; |
class StringCallback; |
class ExecutionContext; |
-class DataTransferItem : public RefCounted<DataTransferItem>, public ScriptWrappable { |
+class DataTransferItem : public RefCountedWillBeGarbageCollectedFinalized<DataTransferItem>, public ScriptWrappable { |
+ DECLARE_GC_INFO; |
public: |
- static PassRefPtr<DataTransferItem> create(PassRefPtr<Clipboard>, PassRefPtr<DataObjectItem>); |
+ static PassRefPtrWillBeRawPtr<DataTransferItem> create(PassRefPtrWillBeRawPtr<Clipboard>, PassRefPtrWillBeRawPtr<DataObjectItem>); |
~DataTransferItem(); |
String kind() const; |
@@ -59,11 +61,13 @@ public: |
Clipboard* clipboard() { return m_clipboard.get(); } |
DataObjectItem* dataObjectItem() { return m_item.get(); } |
+ void trace(Visitor*); |
+ |
private: |
- DataTransferItem(PassRefPtr<Clipboard>, PassRefPtr<DataObjectItem>); |
+ DataTransferItem(PassRefPtrWillBeRawPtr<Clipboard>, PassRefPtrWillBeRawPtr<DataObjectItem>); |
- RefPtr<Clipboard> m_clipboard; |
- RefPtr<DataObjectItem> m_item; |
+ RefPtrWillBeMember<Clipboard> m_clipboard; |
+ RefPtrWillBeMember<DataObjectItem> m_item; |
}; |
} // namespace WebCore |