Chromium Code Reviews

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

Issue 622793002: Group the different permission related methods in the content api. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/notifications/desktop_notification_service.h
diff --git a/chrome/browser/notifications/desktop_notification_service.h b/chrome/browser/notifications/desktop_notification_service.h
index f337c9fbfd0323dfa5b89b1d2111d5bfbf0da076..5ed01da420e95b88108151c8131293cdac2110ad 100644
--- a/chrome/browser/notifications/desktop_notification_service.h
+++ b/chrome/browser/notifications/desktop_notification_service.h
@@ -89,7 +89,7 @@ class DesktopNotificationService : public PermissionContextBase
const PermissionRequestID& request_id,
const GURL& requesting_origin,
bool user_gesture,
- const NotificationPermissionCallback& callback);
+ const base::Callback<void(bool)>& result_callback);
// Show a desktop notification. If |cancel_callback| is non-null, it's set to
// a callback which can be used to cancel the notification.
@@ -121,12 +121,6 @@ class DesktopNotificationService : public PermissionContextBase
// Called when the disabled_extension_id pref has been changed.
void OnDisabledExtensionIdsChanged();
- // Used as a callback once a permission has been decided to convert |allowed|
- // to one of the blink::WebNotificationPermission values.
- void OnNotificationPermissionRequested(
- const base::Callback<void(blink::WebNotificationPermission)>& callback,
- bool allowed);
-
void FirePermissionLevelChangedEvent(
const message_center::NotifierId& notifier_id,
bool enabled);

Powered by Google App Engine