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

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

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: it works \o/ Created 4 years, 7 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_ 5 #ifndef CONTENT_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_
6 #define CONTENT_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_ 6 #define CONTENT_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/notification_resources.h"
9 #include "content/public/common/platform_notification_data.h" 10 #include "content/public/common/platform_notification_data.h"
10 #include "third_party/WebKit/public/platform/modules/notifications/notification. mojom.h" 11 #include "third_party/WebKit/public/platform/modules/notifications/notification. mojom.h"
12 #include "third_party/WebKit/public/platform/modules/notifications/notification_ resources.mojom.h"
11 13
12 namespace mojo { 14 namespace mojo {
13 15
14 // TODO(peter): Remove these converters together with the entire 16 // TODO(peter): Remove these converters together with the entire
15 // PlatformNotificationData type. 17 // PlatformNotificationData and NotificationResources types.
16 18
17 template <> 19 template <>
18 struct TypeConverter<content::PlatformNotificationData, 20 struct TypeConverter<content::PlatformNotificationData,
19 blink::mojom::NotificationPtr> { 21 blink::mojom::NotificationPtr> {
20 static CONTENT_EXPORT content::PlatformNotificationData Convert( 22 static CONTENT_EXPORT content::PlatformNotificationData Convert(
21 const blink::mojom::NotificationPtr& notification); 23 const blink::mojom::NotificationPtr& notification);
22 }; 24 };
23 25
24 template <> 26 template <>
25 struct TypeConverter<blink::mojom::NotificationPtr, 27 struct TypeConverter<blink::mojom::NotificationPtr,
26 content::PlatformNotificationData> { 28 content::PlatformNotificationData> {
27 static CONTENT_EXPORT blink::mojom::NotificationPtr Convert( 29 static CONTENT_EXPORT blink::mojom::NotificationPtr Convert(
28 const content::PlatformNotificationData& notification_data); 30 const content::PlatformNotificationData& notification_data);
29 }; 31 };
30 32
33 template <>
34 struct TypeConverter<content::NotificationResources,
35 blink::mojom::NotificationResourcesPtr> {
36 static CONTENT_EXPORT content::NotificationResources Convert(
37 const blink::mojom::NotificationResourcesPtr& resources);
38 };
39
31 } // namespace mojo 40 } // namespace mojo
32 41
33 #endif // CONTENT_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_ 42 #endif // CONTENT_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_
OLDNEW
« no previous file with comments | « content/browser/notifications/platform_notification_context_impl.cc ('k') | content/browser/notifications/type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698