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

Unified Diff: content/child/notifications/notification_data_conversions.h

Issue 794633002: Remove ShowDesktopNotificationHostMsgParams in favor of PlatformNotificationData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 6 years 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/child/notifications/notification_data_conversions.h
diff --git a/content/child/notifications/notification_data_conversions.h b/content/child/notifications/notification_data_conversions.h
new file mode 100644
index 0000000000000000000000000000000000000000..2739ca42276196c9d26722fc395b4fc0bd1d9dff
--- /dev/null
+++ b/content/child/notifications/notification_data_conversions.h
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_DATA_CONVERSIONS_H_
+#define CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_DATA_CONVERSIONS_H_
+
+#include "content/common/content_export.h"
+#include "content/public/common/platform_notification_data.h"
+#include "third_party/WebKit/public/platform/WebNotificationData.h"
+
+namespace content {
+
+// Converts Blink WebNotificationData to PlatformNotificationData.
+CONTENT_EXPORT PlatformNotificationData ToPlatformNotificationData(
+ const blink::WebNotificationData& web_data);
+
+// Converts PlatformNotificationData to Blink WebNotificationData.
+CONTENT_EXPORT blink::WebNotificationData ToWebNotificationData(
+ const PlatformNotificationData& platform_data);
+
+} // namespace content
+
+#endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_DATA_CONVERSIONS_H_
« no previous file with comments | « content/browser/service_worker/service_worker_version.cc ('k') | content/child/notifications/notification_data_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698