Index: chrome/browser/notifications/notification_ui_manager_android.h |
diff --git a/chrome/browser/notifications/notification_ui_manager_android.h b/chrome/browser/notifications/notification_ui_manager_android.h |
index edaa97a2aaaab0e2fbd0367ae8738ebe03ab4686..67a7e9fcb1101224a514063c2a84bdc74cf42996 100644 |
--- a/chrome/browser/notifications/notification_ui_manager_android.h |
+++ b/chrome/browser/notifications/notification_ui_manager_android.h |
@@ -11,6 +11,7 @@ |
#include <string> |
#include "base/android/scoped_java_ref.h" |
+#include "base/strings/string16.h" |
#include "chrome/browser/notifications/notification_ui_manager.h" |
class ProfileNotification; |
@@ -19,6 +20,17 @@ class ProfileNotification; |
// the Android framework for displaying notifications. |
class NotificationUIManagerAndroid : public NotificationUIManager { |
public: |
+ // Holds all information required to show or close a platform notification. |
+ struct RegeneratedNotificationInfo { |
Peter Beverloo
2015/02/25 18:26:09
Why is this public?
Michael van Ouwerkerk
2015/02/25 19:00:19
Done.
|
+ RegeneratedNotificationInfo(base::string16 tag, |
Peter Beverloo
2015/02/25 18:26:09
const&
Michael van Ouwerkerk
2015/02/25 19:00:19
Done.
|
+ int platform_id, |
+ std::string origin) |
Peter Beverloo
2015/02/25 18:26:10
const&
Michael van Ouwerkerk
2015/02/25 19:00:19
Done.
|
+ : tag(tag), platform_id(platform_id), origin(origin) {} |
+ base::string16 tag; |
+ int platform_id; |
+ std::string origin; |
+ }; |
+ |
NotificationUIManagerAndroid(); |
~NotificationUIManagerAndroid() override; |
@@ -67,8 +79,9 @@ class NotificationUIManagerAndroid : public NotificationUIManager { |
// Map from a notification id to the associated ProfileNotification*. |
std::map<std::string, ProfileNotification*> profile_notifications_; |
- // Map from notification id to the associated platform Id. |
- std::map<std::string, int> platform_notifications_; |
+ // Map from notification id to RegeneratedNotificationInfo. |
+ std::map<std::string, RegeneratedNotificationInfo> |
+ regenerated_notification_infos_; |
base::android::ScopedJavaGlobalRef<jobject> java_object_; |