1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Messages for platform-native notifications using the Web Notification API.
6 // Multiply-included message file, hence no include guard.
8 #include "ipc/ipc_message_macros.h"
9 #include "third_party/WebKit/public/platform/WebNotificationPermission.h"
12 #define IPC_MESSAGE_START PlatformNotificationMsgStart
14 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebNotificationPermission
,
15 blink::WebNotificationPermissionLast
)
17 // Messages sent from the browser to the renderer.
19 // Informs the renderer that the permission request for |request_id| is done,
20 // and has been settled with |result|.
21 IPC_MESSAGE_ROUTED2(PlatformNotificationMsg_PermissionRequestComplete
,
23 blink::WebNotificationPermission
/* result */)
25 // Messages sent from the renderer to the browser.
27 // Requests permission to display platform notifications for |origin|.
28 IPC_MESSAGE_ROUTED2(PlatformNotificationHostMsg_RequestPermission
,