diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/Notifications/WebNotification.h')
-rw-r--r-- | Source/WebKit2/UIProcess/Notifications/WebNotification.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/WebKit2/UIProcess/Notifications/WebNotification.h b/Source/WebKit2/UIProcess/Notifications/WebNotification.h index 4a6fc7e49..19bda4050 100644 --- a/Source/WebKit2/UIProcess/Notifications/WebNotification.h +++ b/Source/WebKit2/UIProcess/Notifications/WebNotification.h @@ -45,26 +45,28 @@ class WebNotification : public APIObject { public: static const Type APIType = TypeNotification; - static PassRefPtr<WebNotification> create(const String& title, const String& body, const String& iconURL, const String& originString, uint64_t notificationID) + static PassRefPtr<WebNotification> create(const String& title, const String& body, const String& iconURL, const String& replaceID, const String& originString, uint64_t notificationID) { - return adoptRef(new WebNotification(title, body, iconURL, originString, notificationID)); + return adoptRef(new WebNotification(title, body, iconURL, replaceID, originString, notificationID)); } const String& title() const { return m_title; } const String& body() const { return m_body; } const String& iconURL() const { return m_iconURL; } + const String& replaceID() const { return m_replaceID; } WebSecurityOrigin* origin() const { return m_origin.get(); } uint64_t notificationID() const { return m_notificationID; } private: - WebNotification(const String& title, const String& body, const String& iconURL, const String& originString, uint64_t notificationID); + WebNotification(const String& title, const String& body, const String& iconURL, const String& replaceID, const String& originString, uint64_t notificationID); virtual Type type() const { return APIType; } String m_title; String m_body; String m_iconURL; + String m_replaceID; RefPtr<WebSecurityOrigin> m_origin; uint64_t m_notificationID; }; |