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

Unified Diff: content/public/common/persistent_notification_status.h

Issue 728763003: Introduce a //content/ API for dispatching notificationclick events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/public/common/persistent_notification_status.h
diff --git a/content/public/common/persistent_notification_status.h b/content/public/common/persistent_notification_status.h
new file mode 100644
index 0000000000000000000000000000000000000000..f77aa0e9d076882c89d5922c45b24ba325feaa0a
--- /dev/null
+++ b/content/public/common/persistent_notification_status.h
@@ -0,0 +1,28 @@
+// 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_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_
+#define CONTENT_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_
+
+namespace content {
+
+// Delivery status for persistent notification clicks to a Service Worker.
+enum PersistentNotificationStatus {
+ // The notificationclick event has been delivered successfully.
+ PERSISTENT_NOTIFICATION_STATUS_SUCCESS = 0,
+
+ // The event could not be delivered because the Service Worker is unavailable.
+ PERSISTENT_NOTIFICATION_STATUS_NO_SERVICE_WORKER,
+
+ // The event could not be delivered because of a Service Worker error.
+ PERSISTENT_NOTIFICATION_STATUS_SERVICE_WORKER_ERROR,
+
+ // The event has been delivered, but the developer extended the event with a
+ // promise that has been rejected.
+ PERSISTENT_NOTIFICATION_STATUS_EVENT_WAITUNTIL_REJECTED
+};
+
+} // content
+
+#endif // CONTENT_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_
« no previous file with comments | « content/public/browser/notification_event_dispatcher.h ('k') | content/public/common/show_desktop_notification_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698