| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 PersistentNotificationDelegate(content::BrowserContext* browser_context, | 24 PersistentNotificationDelegate(content::BrowserContext* browser_context, |
| 25 const std::string& notification_id, | 25 const std::string& notification_id, |
| 26 const GURL& origin, | 26 const GURL& origin, |
| 27 int notification_settings_index); | 27 int notification_settings_index); |
| 28 | 28 |
| 29 // NotificationDelegate implementation. | 29 // NotificationDelegate implementation. |
| 30 void Display() override; | 30 void Display() override; |
| 31 void Close(bool by_user) override; | 31 void Close(bool by_user) override; |
| 32 void Click() override; | 32 void Click() override; |
| 33 void ButtonClick(int button_index) override; | 33 void ButtonClick(int button_index) override; |
| 34 void ButtonClickWithReply(int button_index, |
| 35 const base::string16& reply) override; |
| 34 | 36 |
| 35 protected: | 37 protected: |
| 36 ~PersistentNotificationDelegate() override; | 38 ~PersistentNotificationDelegate() override; |
| 37 | 39 |
| 38 private: | 40 private: |
| 39 int notification_settings_index_; | 41 int notification_settings_index_; |
| 40 | 42 |
| 41 DISALLOW_COPY_AND_ASSIGN(PersistentNotificationDelegate); | 43 DISALLOW_COPY_AND_ASSIGN(PersistentNotificationDelegate); |
| 42 }; | 44 }; |
| 43 | 45 |
| 44 #endif // CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ | 46 #endif // CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ |
| OLD | NEW |