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

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBIsochronousOutTransferResult.h

Issue 1635903004: Add support for isochronous transfers in WebUSB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb_isoc
Patch Set: Fix tense. Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef USBIsochronousOutTransferResult_h
6 #define USBIsochronousOutTransferResult_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/DOMDataView.h"
10 #include "modules/webusb/USBIsochronousOutTransferPacket.h"
11 #include "platform/heap/Handle.h"
12 #include "wtf/text/WTFString.h"
13
14 namespace blink {
15
16 class USBIsochronousOutTransferResult final : public GarbageCollectedFinalized<U SBIsochronousOutTransferResult>, public ScriptWrappable {
17 DEFINE_WRAPPERTYPEINFO();
18 public:
19 static USBIsochronousOutTransferResult* create(const HeapVector<Member<USBIs ochronousOutTransferPacket>>& packets)
20 {
21 return new USBIsochronousOutTransferResult(packets);
22 }
23
24 USBIsochronousOutTransferResult(const HeapVector<Member<USBIsochronousOutTra nsferPacket>>& packets)
25 : m_packets(packets)
26 {
27 }
28
29 virtual ~USBIsochronousOutTransferResult() {}
30
31 const HeapVector<Member<USBIsochronousOutTransferPacket>>& packets() const
32 {
33 return m_packets;
34 }
35
36 DEFINE_INLINE_TRACE() { visitor->trace(m_packets); }
37
38 private:
39 const HeapVector<Member<USBIsochronousOutTransferPacket>> m_packets;
40 };
41
42 } // namespace blink
43
44 #endif // USBIsochronousOutTransferResult_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698