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

Side by Side Diff: content/browser/notifications/type_converters.h

Issue 1898193003: Add type converters from Mojo notifications to the content types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notification-permission-mojom
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 unified diff | Download patch
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/notifications/type_converters.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef CONTENT_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_
6 #define CONTENT_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_
7
8 #include "content/common/content_export.h"
9 #include "content/public/common/platform_notification_data.h"
10 #include "third_party/WebKit/public/platform/modules/notifications/notification. mojom.h"
11
12 namespace mojo {
13
14 // TODO(peter): Remove these converters together with the entire
15 // PlatformNotificationData type.
16
17 template <>
18 struct TypeConverter<content::PlatformNotificationData,
19 blink::mojom::NotificationPtr> {
20 static CONTENT_EXPORT content::PlatformNotificationData Convert(
21 const blink::mojom::NotificationPtr& notification);
22 };
23
24 template <>
25 struct TypeConverter<blink::mojom::NotificationPtr,
26 content::PlatformNotificationData> {
27 static CONTENT_EXPORT blink::mojom::NotificationPtr Convert(
28 const content::PlatformNotificationData& notification_data);
29 };
30
31 } // namespace mojo
32
33 #endif // CONTENT_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/notifications/type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698