Chromium Code Reviews| Index: Source/modules/webusb/USBOutTransferResult.h |
| diff --git a/Source/modules/webusb/USBOutTransferResult.h b/Source/modules/webusb/USBOutTransferResult.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..95c7e429b3e548753e38824212c86db895ae96e0 |
| --- /dev/null |
| +++ b/Source/modules/webusb/USBOutTransferResult.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 USBOutTransferResult_h |
| +#define USBOutTransferResult_h |
| + |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "platform/heap/Heap.h" |
| + |
| +namespace blink { |
| + |
| +class DOMArrayBuffer; |
|
Reilly Grant (use Gerrit)
2015/07/23 23:24:08
Unused forward declaration.
Ken Rockot(use gerrit already)
2015/07/28 22:30:38
Done.
|
| + |
| +class USBOutTransferResult |
| + : public GarbageCollected<USBOutTransferResult> |
| + , public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| +public: |
| + static USBOutTransferResult* create(const String& status, unsigned bytesWritten) |
| + { |
| + return new USBOutTransferResult(status, bytesWritten); |
| + } |
| + |
| + USBOutTransferResult(const String& status, unsigned bytesWritten) |
| + : m_status(status) |
| + , m_bytesWritten(bytesWritten) |
| + { |
| + } |
| + |
| + String status() const { return m_status; } |
| + unsigned bytesWritten() const { return m_bytesWritten; } |
| + |
| + DEFINE_INLINE_TRACE() { } |
| + |
| +private: |
| + String m_status; |
| + unsigned m_bytesWritten; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // USBOutTransferResult_h |