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_PLATFORM_BRIDGE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <map> | 10 #include <map> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void Display(NotificationCommon::Type notification_type, | 64 void Display(NotificationCommon::Type notification_type, |
65 const std::string& notification_id, | 65 const std::string& notification_id, |
66 const std::string& profile_id, | 66 const std::string& profile_id, |
67 bool incognito, | 67 bool incognito, |
68 const Notification& notification) override; | 68 const Notification& notification) override; |
69 void Close(const std::string& profile_id, | 69 void Close(const std::string& profile_id, |
70 const std::string& notification_id) override; | 70 const std::string& notification_id) override; |
71 bool GetDisplayed(const std::string& profile_id, | 71 bool GetDisplayed(const std::string& profile_id, |
72 bool incognito, | 72 bool incognito, |
73 std::set<std::string>* notifications) const override; | 73 std::set<std::string>* notifications) const override; |
74 bool SupportsNotificationCenter() const override; | |
75 | 74 |
76 static bool RegisterNotificationPlatformBridge(JNIEnv* env); | 75 static bool RegisterNotificationPlatformBridge(JNIEnv* env); |
77 | 76 |
78 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 77 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
79 | 78 |
80 private: | 79 private: |
81 // Contains information necessary in order to enable closing notifications | 80 // Contains information necessary in order to enable closing notifications |
82 // that were not created by this instance of the manager. This list may not | 81 // that were not created by this instance of the manager. This list may not |
83 // contain the notifications that have not been interacted with since the last | 82 // contain the notifications that have not been interacted with since the last |
84 // restart of Chrome. | 83 // restart of Chrome. |
(...skipping 14 matching lines...) Expand all Loading... |
99 // notifications are created by the content/ layer. | 98 // notifications are created by the content/ layer. |
100 std::map<std::string, RegeneratedNotificationInfo> | 99 std::map<std::string, RegeneratedNotificationInfo> |
101 regenerated_notification_infos_; | 100 regenerated_notification_infos_; |
102 | 101 |
103 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 102 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
104 | 103 |
105 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeAndroid); | 104 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeAndroid); |
106 }; | 105 }; |
107 | 106 |
108 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_ | 107 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_ |
OLD | NEW |