Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: chrome/browser/notifications/notification_channels_provider_android.h

Issue 2922473003: [Android] Implement GetRuleIterator for channels provider (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/notification_channels_provider_android.h
diff --git a/chrome/browser/notifications/notification_channels_provider_android.h b/chrome/browser/notifications/notification_channels_provider_android.h
index 8c629070276f818c4a5752a3701cf2bb903faad4..f1e399e7965076df3b30d6122a0acf76c14c6134 100644
--- a/chrome/browser/notifications/notification_channels_provider_android.h
+++ b/chrome/browser/notifications/notification_channels_provider_android.h
@@ -21,6 +21,11 @@ namespace {
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.notifications
enum NotificationChannelStatus { ENABLED, BLOCKED, UNAVAILABLE };
+struct Channel {
+ std::string origin;
+ NotificationChannelStatus status;
Peter Beverloo 2017/06/02 15:14:26 nit: give a default value
awdf 2017/06/02 16:59:48 Done.
+};
+
} // anonymous namespace
Peter Beverloo 2017/06/02 15:14:26 Sorry that I missed this earlier - we shouldn't be
awdf 2017/06/02 16:59:48 Done.
// This class provides notification content settings from system notification
@@ -39,6 +44,7 @@ class NotificationChannelsProviderAndroid
virtual NotificationChannelStatus GetChannelStatus(
const std::string& origin) = 0;
virtual void DeleteChannel(const std::string& origin) = 0;
+ virtual std::vector<Channel> GetChannels() = 0;
};
NotificationChannelsProviderAndroid();

Powered by Google App Engine
This is Rietveld 408576698