summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/modules/push_messaging/PushError.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/push_messaging/PushError.h')
-rw-r--r--chromium/third_party/WebKit/Source/modules/push_messaging/PushError.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/push_messaging/PushError.h b/chromium/third_party/WebKit/Source/modules/push_messaging/PushError.h
new file mode 100644
index 00000000000..e8943b246f8
--- /dev/null
+++ b/chromium/third_party/WebKit/Source/modules/push_messaging/PushError.h
@@ -0,0 +1,29 @@
+// Copyright 2014 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 PushError_h
+#define PushError_h
+
+#include "core/dom/DOMException.h"
+#include "platform/heap/Handle.h"
+#include "public/platform/WebPushError.h"
+
+namespace WebCore {
+
+class ScriptPromiseResolverWithContext;
+
+class PushError {
+ WTF_MAKE_NONCOPYABLE(PushError);
+public:
+ // For CallbackPromiseAdapter.
+ typedef blink::WebPushError WebType;
+ static PassRefPtrWillBeRawPtr<DOMException> from(ScriptPromiseResolverWithContext*, WebType* webErrorRaw);
+
+private:
+ PushError() WTF_DELETED_FUNCTION;
+};
+
+} // namespace WebCore
+
+#endif // PushError_h