Chromium Code Reviews| 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 USBError_h | |
| 6 #define USBError_h | |
| 7 | |
| 8 #include "platform/heap/Handle.h" | |
| 9 #include "public/platform/modules/webusb/WebUSBError.h" | |
| 10 #include "wtf/PassOwnPtr.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class DOMException; | |
| 15 class ScriptPromiseResolver; | |
| 16 | |
| 17 // USBError is used with CallbackPromiseAdapter to receive WebUSBError | |
| 18 // responses. See CallbackPromiseAdapter class comments. | |
| 19 class USBError { | |
| 20 WTF_MAKE_NONCOPYABLE(USBError); | |
|
haraken
2015/07/31 08:58:25
Can we use STATIC_ONLY()?
Ken Rockot(use gerrit already)
2015/07/31 16:19:26
Done.
| |
| 21 public: | |
| 22 // Interface required by CallbackPromiseAdapter: | |
| 23 using WebType = WebUSBError; | |
| 24 static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebUSBError>); | |
| 25 | |
| 26 private: | |
| 27 USBError() = delete; | |
|
haraken
2015/07/31 08:58:25
Then we can remove this.
Ken Rockot(use gerrit already)
2015/07/31 16:19:26
Done.
| |
| 28 }; | |
| 29 | |
| 30 } // namespace blink | |
| 31 | |
| 32 #endif // USBError_h | |
| OLD | NEW |