Index: Source/core/clipboard/DataTransferItemList.h |
diff --git a/Source/core/clipboard/DataTransferItemList.h b/Source/core/clipboard/DataTransferItemList.h |
index 04c521af8a8aa1d94b0213571e2db29c7e0ef761..a5a536405c3e977c0f2b1649504e6e8476449957 100644 |
--- a/Source/core/clipboard/DataTransferItemList.h |
+++ b/Source/core/clipboard/DataTransferItemList.h |
@@ -32,6 +32,7 @@ |
#define DataTransferItemList_h |
#include "bindings/v8/ScriptWrappable.h" |
+#include "heap/Handle.h" |
#include "wtf/Forward.h" |
#include "wtf/RefCounted.h" |
#include "wtf/RefPtr.h" |
@@ -45,23 +46,26 @@ class File; |
class ExceptionState; |
-class DataTransferItemList : public RefCounted<DataTransferItemList>, public ScriptWrappable { |
+class DataTransferItemList : public RefCountedWillBeGarbageCollected<DataTransferItemList>, public ScriptWrappable { |
zerny-chromium
2014/02/17 10:43:13
+Finalized
|
+ DECLARE_GC_INFO; |
public: |
- static PassRefPtr<DataTransferItemList> create(PassRefPtr<Clipboard>, PassRefPtr<DataObject>); |
+ static PassRefPtrWillBeRawPtr<DataTransferItemList> create(PassRefPtrWillBeRawPtr<Clipboard>, PassRefPtrWillBeRawPtr<DataObject>); |
~DataTransferItemList(); |
size_t length() const; |
- PassRefPtr<DataTransferItem> item(unsigned long index); |
+ PassRefPtrWillBeRawPtr<DataTransferItem> item(unsigned long index); |
void deleteItem(unsigned long index, ExceptionState&); |
void clear(); |
- PassRefPtr<DataTransferItem> add(const String& data, const String& type, ExceptionState&); |
- PassRefPtr<DataTransferItem> add(PassRefPtr<File>); |
+ PassRefPtrWillBeRawPtr<DataTransferItem> add(const String& data, const String& type, ExceptionState&); |
+ PassRefPtrWillBeRawPtr<DataTransferItem> add(PassRefPtr<File>); |
+ |
+ void trace(Visitor*); |
private: |
- DataTransferItemList(PassRefPtr<Clipboard>, PassRefPtr<DataObject>); |
+ DataTransferItemList(PassRefPtrWillBeRawPtr<Clipboard>, PassRefPtrWillBeRawPtr<DataObject>); |
- RefPtr<Clipboard> m_clipboard; |
- RefPtr<DataObject> m_dataObject; |
+ RefPtrWillBeMember<Clipboard> m_clipboard; |
+ RefPtrWillBeMember<DataObject> m_dataObject; |
}; |
} // namespace WebCore |