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

Side by Side Diff: content/public/common/persistent_notification_status.h

Issue 1026853002: Integrate the notification database with the normal code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-ConfirmShow
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_
6 #define CONTENT_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_ 6 #define CONTENT_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 // Delivery status for persistent notification clicks to a Service Worker. 10 // Delivery status for persistent notification clicks to a Service Worker.
11 enum PersistentNotificationStatus { 11 enum PersistentNotificationStatus {
12 // The notificationclick event has been delivered successfully. 12 // The notificationclick event has been delivered successfully.
13 PERSISTENT_NOTIFICATION_STATUS_SUCCESS = 0, 13 PERSISTENT_NOTIFICATION_STATUS_SUCCESS = 0,
14 14
15 // The event could not be delivered because the Service Worker is unavailable. 15 // The event could not be delivered because the Service Worker is unavailable.
16 PERSISTENT_NOTIFICATION_STATUS_NO_SERVICE_WORKER, 16 PERSISTENT_NOTIFICATION_STATUS_NO_SERVICE_WORKER,
17 17
18 // The event could not be delivered because of a Service Worker error. 18 // The event could not be delivered because of a Service Worker error.
19 PERSISTENT_NOTIFICATION_STATUS_SERVICE_WORKER_ERROR, 19 PERSISTENT_NOTIFICATION_STATUS_SERVICE_WORKER_ERROR,
20 20
21 // The event has been delivered, but the developer extended the event with a 21 // The event has been delivered, but the developer extended the event with a
22 // promise that has been rejected. 22 // promise that has been rejected.
23 PERSISTENT_NOTIFICATION_STATUS_EVENT_WAITUNTIL_REJECTED 23 PERSISTENT_NOTIFICATION_STATUS_EVENT_WAITUNTIL_REJECTED,
24
25 // The event could not be delivered because the data associated with the
26 // notification could not be read from the database.
27 PERSISTENT_NOTIFICATION_STATUS_DATABASE_ERROR,
24 }; 28 };
25 29
26 } // content 30 } // content
27 31
28 #endif // CONTENT_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_ 32 #endif // CONTENT_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698