OLD | NEW |
(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_ |
OLD | NEW |