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

Side by Side Diff: content/common/platform_notification_messages.h

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « content/common/page_messages.h ('k') | content/common/quota_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
6 #define CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
7
5 // Messages for platform-native notifications using the Web Notification API. 8 // Messages for platform-native notifications using the Web Notification API.
6 // Multiply-included message file, hence no include guard.
7 9
8 #include <stdint.h> 10 #include <stdint.h>
9 #include <string> 11 #include <string>
10 #include <utility> 12 #include <utility>
11 #include <vector> 13 #include <vector>
12 14
13 #include "content/public/common/common_param_traits_macros.h" 15 #include "content/public/common/common_param_traits_macros.h"
14 #include "content/public/common/notification_resources.h" 16 #include "content/public/common/notification_resources.h"
15 #include "content/public/common/platform_notification_data.h" 17 #include "content/public/common/platform_notification_data.h"
16 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
17 19
18 // Singly-included section for type definitions. 20 // Singly-included section for type definitions.
19 #ifndef CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_ 21 #ifndef INTERNAL_CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
20 #define CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_ 22 #define INTERNAL_CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
21 23
22 // Defines the pair of [notification id] => [notification data] used when 24 // Defines the pair of [notification id] => [notification data] used when
23 // getting the notifications for a given Service Worker registration. 25 // getting the notifications for a given Service Worker registration.
24 using PersistentNotificationInfo = 26 using PersistentNotificationInfo =
25 std::pair<std::string, content::PlatformNotificationData>; 27 std::pair<std::string, content::PlatformNotificationData>;
26 28
27 #endif // CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_ 29 #endif // INTERNAL_CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
28 30
29 #define IPC_MESSAGE_START PlatformNotificationMsgStart 31 #define IPC_MESSAGE_START PlatformNotificationMsgStart
30 32
31 IPC_ENUM_TRAITS_MAX_VALUE( 33 IPC_ENUM_TRAITS_MAX_VALUE(
32 content::PlatformNotificationData::Direction, 34 content::PlatformNotificationData::Direction,
33 content::PlatformNotificationData::DIRECTION_LAST) 35 content::PlatformNotificationData::DIRECTION_LAST)
34 36
35 IPC_ENUM_TRAITS_MAX_VALUE(content::PlatformNotificationActionType, 37 IPC_ENUM_TRAITS_MAX_VALUE(content::PlatformNotificationActionType,
36 content::PLATFORM_NOTIFICATION_ACTION_TYPE_TEXT) 38 content::PLATFORM_NOTIFICATION_ACTION_TYPE_TEXT)
37 39
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 123
122 IPC_MESSAGE_CONTROL3(PlatformNotificationHostMsg_Close, 124 IPC_MESSAGE_CONTROL3(PlatformNotificationHostMsg_Close,
123 GURL /* origin */, 125 GURL /* origin */,
124 std::string /* tag */, 126 std::string /* tag */,
125 int /* non_persistent_notification_id */) 127 int /* non_persistent_notification_id */)
126 128
127 IPC_MESSAGE_CONTROL3(PlatformNotificationHostMsg_ClosePersistent, 129 IPC_MESSAGE_CONTROL3(PlatformNotificationHostMsg_ClosePersistent,
128 GURL /* origin */, 130 GURL /* origin */,
129 std::string /* tag */, 131 std::string /* tag */,
130 std::string /* notification_id */) 132 std::string /* notification_id */)
133
134 #endif // CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
OLDNEW
« no previous file with comments | « content/common/page_messages.h ('k') | content/common/quota_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698