Add ICU message format support
[chromium-blink-merge.git] / content / public / common / persistent_notification_status.h
blob38d1dab4f2aa9752b19bafe342268a95ced985c5
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_
6 #define CONTENT_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_
8 namespace content {
10 // Delivery status for persistent notification clicks to a Service Worker.
11 // PersistentNotificationStatus entries should not be reordered or removed.
12 enum PersistentNotificationStatus {
13 // The notificationclick event has been delivered successfully.
14 PERSISTENT_NOTIFICATION_STATUS_SUCCESS = 0,
16 // The event could not be delivered because the Service Worker is unavailable.
17 PERSISTENT_NOTIFICATION_STATUS_NO_SERVICE_WORKER,
19 // The event could not be delivered because of a Service Worker error.
20 PERSISTENT_NOTIFICATION_STATUS_SERVICE_WORKER_ERROR,
22 // The event has been delivered, but the developer extended the event with a
23 // promise that has been rejected.
24 PERSISTENT_NOTIFICATION_STATUS_EVENT_WAITUNTIL_REJECTED,
26 // The event could not be delivered because the data associated with the
27 // notification could not be read from the database.
28 PERSISTENT_NOTIFICATION_STATUS_DATABASE_ERROR,
30 // Only add new entries above this line.
31 PERSISTENT_NOTIFICATION_STATUS_MAX
34 } // content
36 #endif // CONTENT_PUBLIC_COMMON_PERSISTENT_NOTIFICATION_STATUS_H_