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

Unified Diff: content/browser/notifications/notification_message_filter.h

Issue 1898153002: Migrate notifications to use the PermissionStatus enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix type traits conflicts Created 4 years, 8 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/notifications/notification_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/notifications/notification_message_filter.h
diff --git a/content/browser/notifications/notification_message_filter.h b/content/browser/notifications/notification_message_filter.h
index a9d3e231f4dfe687d45ab54d055edea7f2640fd0..c8987b7983fa0de649c6a802a4ed57190e1fcef1 100644
--- a/content/browser/notifications/notification_message_filter.h
+++ b/content/browser/notifications/notification_message_filter.h
@@ -15,7 +15,7 @@
#include "base/memory/weak_ptr.h"
#include "content/public/browser/browser_message_filter.h"
#include "content/public/browser/notification_database_data.h"
-#include "third_party/WebKit/public/platform/modules/notifications/WebNotificationPermission.h"
+#include "third_party/WebKit/public/platform/modules/permissions/permission_status.mojom.h"
class GURL;
@@ -54,7 +54,8 @@ class NotificationMessageFilter : public BrowserMessageFilter {
friend class BrowserThread;
void OnCheckNotificationPermission(
- const GURL& origin, blink::WebNotificationPermission* permission);
+ const GURL& origin,
+ blink::mojom::PermissionStatus* permission_status);
void OnShowPlatformNotification(
int notification_id,
const GURL& origin,
@@ -103,7 +104,7 @@ class NotificationMessageFilter : public BrowserMessageFilter {
// Returns the permission status for |origin|. Must only be used on the IO
// thread. If the PlatformNotificationService is unavailable, permission will
// assumed to be denied.
- blink::WebNotificationPermission GetPermissionForOriginOnIO(
+ blink::mojom::PermissionStatus GetPermissionForOriginOnIO(
const GURL& origin) const;
// Verifies that Web Notification permission has been granted for |origin| in
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/notifications/notification_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698