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

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

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
« no previous file with comments | « Source/core/clipboard/DataTransferItem.h ('k') | Source/core/clipboard/DataTransferItem.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/clipboard/DataTransferItem.cpp
diff --git a/Source/core/clipboard/DataTransferItem.cpp b/Source/core/clipboard/DataTransferItem.cpp
index 30b9b9f4154bb22e8fad583899555b80dff6bb46..325d7e42ba7d04a420be7e08701b0c5a0b6a643d 100644
--- a/Source/core/clipboard/DataTransferItem.cpp
+++ b/Source/core/clipboard/DataTransferItem.cpp
@@ -39,9 +39,11 @@
namespace WebCore {
-PassRefPtr<DataTransferItem> DataTransferItem::create(PassRefPtr<Clipboard> clipboard, PassRefPtr<DataObjectItem> item)
+DEFINE_GC_INFO(DataTransferItem);
+
+PassRefPtrWillBeRawPtr<DataTransferItem> DataTransferItem::create(PassRefPtrWillBeRawPtr<Clipboard> clipboard, PassRefPtrWillBeRawPtr<DataObjectItem> item)
{
- return adoptRef(new DataTransferItem(clipboard, item));
+ return adoptRefWillBeNoop(new DataTransferItem(clipboard, item));
}
DataTransferItem::~DataTransferItem()
@@ -89,13 +91,18 @@ PassRefPtr<Blob> DataTransferItem::getAsFile() const
return m_item->getAsFile();
}
-DataTransferItem::DataTransferItem(PassRefPtr<Clipboard> clipboard, PassRefPtr<DataObjectItem> item)
+DataTransferItem::DataTransferItem(PassRefPtrWillBeRawPtr<Clipboard> clipboard, PassRefPtrWillBeRawPtr<DataObjectItem> item)
: m_clipboard(clipboard)
, m_item(item)
{
ScriptWrappable::init(this);
}
+void DataTransferItem::trace(Visitor* visitor)
+{
+ visitor->trace(m_clipboard);
+ visitor->trace(m_item);
+}
} // namespace WebCore
« no previous file with comments | « Source/core/clipboard/DataTransferItem.h ('k') | Source/core/clipboard/DataTransferItem.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698