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 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.
| |
14 | |
15 class USBOutTransferResult | |
16 : public GarbageCollected<USBOutTransferResult> | |
17 , public ScriptWrappable { | |
18 DEFINE_WRAPPERTYPEINFO(); | |
19 public: | |
20 static USBOutTransferResult* create(const String& status, unsigned bytesWrit ten) | |
21 { | |
22 return new USBOutTransferResult(status, bytesWritten); | |
23 } | |
24 | |
25 USBOutTransferResult(const String& status, unsigned bytesWritten) | |
26 : m_status(status) | |
27 , m_bytesWritten(bytesWritten) | |
28 { | |
29 } | |
30 | |
31 String status() const { return m_status; } | |
32 unsigned bytesWritten() const { return m_bytesWritten; } | |
33 | |
34 DEFINE_INLINE_TRACE() { } | |
35 | |
36 private: | |
37 String m_status; | |
38 unsigned m_bytesWritten; | |
39 }; | |
40 | |
41 } // namespace blink | |
42 | |
43 #endif // USBOutTransferResult_h | |
OLD | NEW |