| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PushError_h | 5 #ifndef PushError_h |
| 6 #define PushError_h | 6 #define PushError_h |
| 7 | 7 |
| 8 #include "core/dom/DOMException.h" | 8 #include "core/dom/DOMException.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "platform/wtf/Allocator.h" |
| 10 #include "public/platform/modules/push_messaging/WebPushError.h" | 11 #include "public/platform/modules/push_messaging/WebPushError.h" |
| 11 #include "wtf/Allocator.h" | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class ScriptPromiseResolver; | 15 class ScriptPromiseResolver; |
| 16 | 16 |
| 17 class PushError { | 17 class PushError { |
| 18 STATIC_ONLY(PushError); | 18 STATIC_ONLY(PushError); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 // For CallbackPromiseAdapter. | 21 // For CallbackPromiseAdapter. |
| 22 using WebType = const WebPushError&; | 22 using WebType = const WebPushError&; |
| 23 static DOMException* Take(ScriptPromiseResolver*, | 23 static DOMException* Take(ScriptPromiseResolver*, |
| 24 const WebPushError& web_error); | 24 const WebPushError& web_error); |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace blink | 27 } // namespace blink |
| 28 | 28 |
| 29 #endif // PushError_h | 29 #endif // PushError_h |
| OLD | NEW |