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

Unified Diff: content/common/platform_notification_messages.h

Issue 1898153002: Migrate notifications to use the PermissionStatus enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/common/platform_notification_messages.h
diff --git a/content/common/platform_notification_messages.h b/content/common/platform_notification_messages.h
index 5e5d8bb65f7d543ff89dea962ebc68d97cada28d..4f4f95d713fda13646a58701a5533557cc8f5e60 100644
--- a/content/common/platform_notification_messages.h
+++ b/content/common/platform_notification_messages.h
@@ -13,7 +13,7 @@
#include "content/public/common/notification_resources.h"
#include "content/public/common/platform_notification_data.h"
#include "ipc/ipc_message_macros.h"
-#include "third_party/WebKit/public/platform/modules/notifications/WebNotificationPermission.h"
+#include "third_party/WebKit/public/platform/modules/permissions/permission_status.mojom.h"
#include "third_party/skia/include/core/SkBitmap.h"
// Singly-included section for type definitions.
@@ -29,8 +29,8 @@ using PersistentNotificationInfo =
#define IPC_MESSAGE_START PlatformNotificationMsgStart
-IPC_ENUM_TRAITS_MAX_VALUE(blink::WebNotificationPermission,
- blink::WebNotificationPermissionLast)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::mojom::PermissionStatus,
+ blink::mojom::PermissionStatus::LAST)
IPC_ENUM_TRAITS_MAX_VALUE(
content::PlatformNotificationData::Direction,
@@ -128,6 +128,7 @@ IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent,
GURL /* origin */,
int64_t /* persistent_notification_id */)
-IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission,
- GURL /* origin */,
- blink::WebNotificationPermission /* result */)
+IPC_SYNC_MESSAGE_CONTROL1_1(
+ PlatformNotificationHostMsg_CheckPermission,
+ GURL /* origin */,
+ blink::mojom::PermissionStatus /* permission_status */)

Powered by Google App Engine
This is Rietveld 408576698