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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/notifications/type_converters.h
diff --git a/content/browser/notifications/type_converters.h b/content/browser/notifications/type_converters.h
index b9a364048b04c866120a932296cbc141e9808842..1597025904dd3221d3bc008eba7f2bab45924e06 100644
--- a/content/browser/notifications/type_converters.h
+++ b/content/browser/notifications/type_converters.h
@@ -6,13 +6,15 @@
#define CONTENT_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_
#include "content/common/content_export.h"
+#include "content/public/common/notification_resources.h"
#include "content/public/common/platform_notification_data.h"
#include "third_party/WebKit/public/platform/modules/notifications/notification.mojom.h"
+#include "third_party/WebKit/public/platform/modules/notifications/notification_resources.mojom.h"
namespace mojo {
// TODO(peter): Remove these converters together with the entire
-// PlatformNotificationData type.
+// PlatformNotificationData and NotificationResources types.
template <>
struct TypeConverter<content::PlatformNotificationData,
@@ -28,6 +30,13 @@ struct TypeConverter<blink::mojom::NotificationPtr,
const content::PlatformNotificationData& notification_data);
};
+template <>
+struct TypeConverter<content::NotificationResources,
+ blink::mojom::NotificationResourcesPtr> {
+ static CONTENT_EXPORT content::NotificationResources Convert(
+ const blink::mojom::NotificationResourcesPtr& resources);
+};
+
} // namespace mojo
#endif // CONTENT_BROWSER_NOTIFICATIONS_TYPE_CONVERTERS_H_
« 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