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

Unified Diff: content/public/browser/platform_notification_service.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/common/platform_notification_messages.h ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/platform_notification_service.h
diff --git a/content/public/browser/platform_notification_service.h b/content/public/browser/platform_notification_service.h
index 75e8c12e320570c24832e60e57bb873b7a3abcbf..ba70b331a8f89a23fe79e07fe9c41c424c8a35b0 100644
--- a/content/public/browser/platform_notification_service.h
+++ b/content/public/browser/platform_notification_service.h
@@ -14,7 +14,7 @@
#include "base/callback_forward.h"
#include "content/common/content_export.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;
@@ -35,7 +35,7 @@ class CONTENT_EXPORT PlatformNotificationService {
// Checks if |origin| has permission to display Web Notifications.
// This method must only be called on the UI thread.
- virtual blink::WebNotificationPermission CheckPermissionOnUIThread(
+ virtual blink::mojom::PermissionStatus CheckPermissionOnUIThread(
BrowserContext* browser_context,
const GURL& origin,
int render_process_id) = 0;
@@ -45,7 +45,7 @@ class CONTENT_EXPORT PlatformNotificationService {
// JavaScript getter, and should not be used for other purposes. See
// https://crbug.com/446497 for the plan to deprecate this method.
// This method must only be called on the IO thread.
- virtual blink::WebNotificationPermission CheckPermissionOnIOThread(
+ virtual blink::mojom::PermissionStatus CheckPermissionOnIOThread(
ResourceContext* resource_context,
const GURL& origin,
int render_process_id) = 0;
« no previous file with comments | « content/common/platform_notification_messages.h ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698