OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 USBOutTransferResult_h |
| 6 #define USBOutTransferResult_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Heap.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class USBOutTransferResult |
| 14 : public GarbageCollected<USBOutTransferResult> |
| 15 , public ScriptWrappable { |
| 16 DEFINE_WRAPPERTYPEINFO(); |
| 17 public: |
| 18 static USBOutTransferResult* create(const String& status, unsigned bytesWrit
ten) |
| 19 { |
| 20 return new USBOutTransferResult(status, bytesWritten); |
| 21 } |
| 22 |
| 23 USBOutTransferResult(const String& status, unsigned bytesWritten) |
| 24 : m_status(status) |
| 25 , m_bytesWritten(bytesWritten) |
| 26 { |
| 27 } |
| 28 |
| 29 String status() const { return m_status; } |
| 30 unsigned bytesWritten() const { return m_bytesWritten; } |
| 31 |
| 32 DEFINE_INLINE_TRACE() { } |
| 33 |
| 34 private: |
| 35 String m_status; |
| 36 unsigned m_bytesWritten; |
| 37 }; |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif // USBOutTransferResult_h |
OLD | NEW |