| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7baabc2546d7c84b203768aace63f27b260bf7f0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferPacket.h
|
| @@ -0,0 +1,43 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef USBIsochronousInTransferPacket_h
|
| +#define USBIsochronousInTransferPacket_h
|
| +
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "core/dom/DOMDataView.h"
|
| +#include "platform/heap/GarbageCollected.h"
|
| +#include "wtf/text/WTFString.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class USBIsochronousInTransferPacket final : public GarbageCollectedFinalized<USBIsochronousInTransferPacket>, public ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +public:
|
| + static USBIsochronousInTransferPacket* create(const String& status, PassRefPtr<DOMDataView> data)
|
| + {
|
| + return new USBIsochronousInTransferPacket(status, data);
|
| + }
|
| +
|
| + USBIsochronousInTransferPacket(const String& status, PassRefPtr<DOMDataView> data)
|
| + : m_status(status)
|
| + , m_data(data)
|
| + {
|
| + }
|
| +
|
| + virtual ~USBIsochronousInTransferPacket() {}
|
| +
|
| + String status() const { return m_status; }
|
| + PassRefPtr<DOMDataView> data() const { return m_data; }
|
| +
|
| + DEFINE_INLINE_TRACE() {}
|
| +
|
| +private:
|
| + const String m_status;
|
| + const RefPtr<DOMDataView> m_data;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // USBIsochronousInTransferPacket_h
|
|
|