Index: Source/modules/notifications/Notification.h |
diff --git a/Source/modules/notifications/Notification.h b/Source/modules/notifications/Notification.h |
index 80a2b3d5a833f8d14805895465c12dc1e08c7823..2b85a1dcc3185c8887935e4d57026943a6ec7a96 100644 |
--- a/Source/modules/notifications/Notification.h |
+++ b/Source/modules/notifications/Notification.h |
@@ -55,7 +55,6 @@ |
namespace WebCore { |
class Dictionary; |
-class ExceptionState; |
class NotificationCenter; |
class NotificationPermissionCallback; |
class ResourceError; |
@@ -63,13 +62,15 @@ class ResourceResponse; |
class ScriptExecutionContext; |
class ThreadableLoader; |
+typedef int ExceptionCode; |
+ |
class Notification : public RefCounted<Notification>, public ScriptWrappable, public ActiveDOMObject, public EventTarget { |
WTF_MAKE_FAST_ALLOCATED; |
public: |
Notification(); |
#if ENABLE(LEGACY_NOTIFICATIONS) |
- static PassRefPtr<Notification> create(const KURL&, ScriptExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter> provider); |
- static PassRefPtr<Notification> create(const String& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter> provider); |
+ static PassRefPtr<Notification> create(const KURL&, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter> provider); |
+ static PassRefPtr<Notification> create(const String& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter> provider); |
#endif |
#if ENABLE(NOTIFICATIONS) |
static PassRefPtr<Notification> create(ScriptExecutionContext*, const String& title, const Dictionary& options); |
@@ -151,8 +152,8 @@ public: |
private: |
#if ENABLE(LEGACY_NOTIFICATIONS) |
- Notification(const KURL&, ScriptExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter>); |
- Notification(const String& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter>); |
+ Notification(const KURL&, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter>); |
+ Notification(const String& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter>); |
#endif |
#if ENABLE(NOTIFICATIONS) |
Notification(ScriptExecutionContext*, const String& title); |