| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_NOTIFICATIONS_PAGE_NOTIFICATION_DELEGATE_H_ | |
| 6 #define CONTENT_BROWSER_NOTIFICATIONS_PAGE_NOTIFICATION_DELEGATE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "content/public/browser/desktop_notification_delegate.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 // A delegate used by the notification service to report the results of platform | |
| 15 // notification interactions to Web Notifications whose lifetime is tied to | |
| 16 // that of the page displaying them. | |
| 17 class PageNotificationDelegate : public DesktopNotificationDelegate { | |
| 18 public: | |
| 19 PageNotificationDelegate(int render_process_id, | |
| 20 int non_persistent_notification_id, | |
| 21 const std::string& notification_id); | |
| 22 ~PageNotificationDelegate() override; | |
| 23 | |
| 24 // DesktopNotificationDelegate implementation. | |
| 25 void NotificationDisplayed() override; | |
| 26 void NotificationClosed() override; | |
| 27 void NotificationClick() override; | |
| 28 | |
| 29 private: | |
| 30 int render_process_id_; | |
| 31 int non_persistent_notification_id_; | |
| 32 std::string notification_id_; | |
| 33 }; | |
| 34 | |
| 35 } // namespace content | |
| 36 | |
| 37 #endif // CONTENT_BROWSER_NOTIFICATIONS_PAGE_NOTIFICATION_DELEGATE_H_ | |
| OLD | NEW |