OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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_PERSISTENT_NOTIFICATION_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "ui/message_center/notification_delegate.h" |
| 11 #include "url/gurl.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class BrowserContext; |
| 16 |
| 17 // |
| 18 class PersistentNotificationDelegate |
| 19 : public message_center::NotificationDelegate { |
| 20 public: |
| 21 PersistentNotificationDelegate(BrowserContext* browser_context, |
| 22 const GURL& origin, |
| 23 int64_t persistent_notification_id); |
| 24 |
| 25 // message_center::NotificationDelegate implementation. |
| 26 void Display() override {} |
| 27 void Close(bool by_user) override; |
| 28 bool HasClickedListener() override; |
| 29 void Click() override; |
| 30 void ButtonClick(int button_index) override {} |
| 31 |
| 32 private: |
| 33 ~PersistentNotificationDelegate() override; |
| 34 |
| 35 BrowserContext* browser_context_; |
| 36 GURL origin_; |
| 37 int64_t persistent_notification_id_; |
| 38 }; |
| 39 |
| 40 } // namespace content |
| 41 |
| 42 #endif // CONTENT_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ |
OLD | NEW |