Index: third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferResult.h |
diff --git a/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferResult.h b/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferResult.h |
index fad2470ad4f035a432c87dc717885b4bd6e96ce2..c24d2dc1cee98223e4c53db292cd17825a374443 100644 |
--- a/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferResult.h |
+++ b/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferResult.h |
@@ -17,12 +17,12 @@ namespace blink { |
class USBIsochronousInTransferResult final : public GarbageCollectedFinalized<USBIsochronousInTransferResult>, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static USBIsochronousInTransferResult* create(PassRefPtr<DOMArrayBuffer> data, const HeapVector<Member<USBIsochronousInTransferPacket>>& packets) |
+ static USBIsochronousInTransferResult* create(DOMArrayBuffer* data, const HeapVector<Member<USBIsochronousInTransferPacket>>& packets) |
{ |
return new USBIsochronousInTransferResult(data, packets); |
} |
- USBIsochronousInTransferResult(PassRefPtr<DOMArrayBuffer> data, const HeapVector<Member<USBIsochronousInTransferPacket>>& packets) |
+ USBIsochronousInTransferResult(DOMArrayBuffer* data, const HeapVector<Member<USBIsochronousInTransferPacket>>& packets) |
: m_packets(packets) |
{ |
unsigned byteLength = data->byteLength(); |
@@ -31,16 +31,20 @@ public: |
virtual ~USBIsochronousInTransferResult() {} |
- PassRefPtr<DOMDataView> data() const { return m_data; } |
+ DOMDataView* data() const { return m_data; } |
const HeapVector<Member<USBIsochronousInTransferPacket>>& packets() const |
{ |
return m_packets; |
} |
- DEFINE_INLINE_TRACE() { visitor->trace(m_packets); } |
+ DEFINE_INLINE_TRACE() |
+ { |
+ visitor->trace(m_data); |
+ visitor->trace(m_packets); |
+ } |
private: |
- RefPtr<DOMDataView> m_data; |
+ Member<DOMDataView> m_data; |
const HeapVector<Member<USBIsochronousInTransferPacket>> m_packets; |
}; |