Index: third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferPacket.h |
diff --git a/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferPacket.h b/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferPacket.h |
index 7baabc2546d7c84b203768aace63f27b260bf7f0..2a5bb450f8043fc2ec99bff2224ca0daacc83913 100644 |
--- a/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferPacket.h |
+++ b/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferPacket.h |
@@ -15,27 +15,30 @@ namespace blink { |
class USBIsochronousInTransferPacket final : public GarbageCollectedFinalized<USBIsochronousInTransferPacket>, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static USBIsochronousInTransferPacket* create(const String& status, PassRefPtr<DOMDataView> data) |
+ static USBIsochronousInTransferPacket* create(const String& status, DOMDataView* data) |
{ |
return new USBIsochronousInTransferPacket(status, data); |
} |
- USBIsochronousInTransferPacket(const String& status, PassRefPtr<DOMDataView> data) |
- : m_status(status) |
- , m_data(data) |
- { |
- } |
- |
- virtual ~USBIsochronousInTransferPacket() {} |
+ ~USBIsochronousInTransferPacket() {} |
String status() const { return m_status; } |
- PassRefPtr<DOMDataView> data() const { return m_data; } |
+ DOMDataView* data() const { return m_data; } |
- DEFINE_INLINE_TRACE() {} |
+ DEFINE_INLINE_TRACE() |
+ { |
+ visitor->trace(m_data); |
+ } |
private: |
+ USBIsochronousInTransferPacket(const String& status, DOMDataView* data) |
+ : m_status(status) |
+ , m_data(data) |
+ { |
+ } |
+ |
const String m_status; |
- const RefPtr<DOMDataView> m_data; |
+ const Member<DOMDataView> m_data; |
}; |
} // namespace blink |