| Index: Source/modules/webusb/USBInTransferResult.h
|
| diff --git a/Source/modules/webusb/USBInTransferResult.h b/Source/modules/webusb/USBInTransferResult.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..edc0c682ec5cbfcf2988ad47eb9f92d54db86353
|
| --- /dev/null
|
| +++ b/Source/modules/webusb/USBInTransferResult.h
|
| @@ -0,0 +1,43 @@
|
| +// Copyright 2015 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 USBInTransferResult_h
|
| +#define USBInTransferResult_h
|
| +
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "platform/heap/Heap.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class DOMArrayBuffer;
|
| +
|
| +class USBInTransferResult
|
| + : public GarbageCollected<USBInTransferResult>
|
| + , public ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +public:
|
| + static USBInTransferResult* create(const String& status, PassRefPtr<DOMArrayBuffer> data)
|
| + {
|
| + return new USBInTransferResult(status, data);
|
| + }
|
| +
|
| + USBInTransferResult(const String& status, PassRefPtr<DOMArrayBuffer> data)
|
| + : m_status(status)
|
| + , m_data(data)
|
| + {
|
| + }
|
| +
|
| + String status() const { return m_status; }
|
| + DOMArrayBuffer* data() const { return m_data.get(); }
|
| +
|
| + DEFINE_INLINE_TRACE() { }
|
| +
|
| +private:
|
| + String m_status;
|
| + RefPtr<DOMArrayBuffer> m_data;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // USBInTransferResult_h
|
|
|