| 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_NOTIFICATION_UI_MANAGER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <stdint.h> |
| 9 #include <map> | 10 #include <map> |
| 10 #include <string> | 11 #include <string> |
| 11 | 12 |
| 12 #include "base/android/scoped_java_ref.h" | 13 #include "base/android/scoped_java_ref.h" |
| 14 #include "base/macros.h" |
| 13 #include "chrome/browser/notifications/notification_ui_manager.h" | 15 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 14 | 16 |
| 15 // Implementation of the Notification UI Manager for Android, which defers to | 17 // Implementation of the Notification UI Manager for Android, which defers to |
| 16 // the Android framework for displaying notifications. | 18 // the Android framework for displaying notifications. |
| 17 // | 19 // |
| 18 // Android does not support getting the notifications currently shown by an | 20 // Android does not support getting the notifications currently shown by an |
| 19 // app without very intrusive permissions, which means that it's not possible | 21 // app without very intrusive permissions, which means that it's not possible |
| 20 // to provide reliable implementations for methods which have to iterate over | 22 // to provide reliable implementations for methods which have to iterate over |
| 21 // the existing notifications. Because of this, these have not been implemented. | 23 // the existing notifications. Because of this, these have not been implemented. |
| 22 // | 24 // |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // notifications are created by the content/ layer. | 83 // notifications are created by the content/ layer. |
| 82 std::map<int64_t, RegeneratedNotificationInfo> | 84 std::map<int64_t, RegeneratedNotificationInfo> |
| 83 regenerated_notification_infos_; | 85 regenerated_notification_infos_; |
| 84 | 86 |
| 85 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 87 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 86 | 88 |
| 87 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerAndroid); | 89 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerAndroid); |
| 88 }; | 90 }; |
| 89 | 91 |
| 90 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_ | 92 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_ |
| OLD | NEW |