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

Unified Diff: Source/core/clipboard/DataTransferItem.h

Issue 169323002: Oilpan: Move core/clipboard/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/core/clipboard/DataTransferItem.h
diff --git a/Source/core/clipboard/DataTransferItem.h b/Source/core/clipboard/DataTransferItem.h
index 74dd384e67b896ed7b2ee278a1bf89b37871d31b..a818b6fa89b22e521914084b1a2e6f2fe6599983 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 RefCountedWillBeGarbageCollected<DataTransferItem>, public ScriptWrappable {
zerny-chromium 2014/02/17 10:43:13 +Finalized
+ 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

Powered by Google App Engine
This is Rietveld 408576698