OLD | NEW |
---|---|
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_PUSH_MESSAGING_STATUS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_STATUS_H_ |
6 #define CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_STATUS_H_ | 6 #define CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_STATUS_H_ |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 | 9 |
10 // Push registration success / error codes for internal use & reporting in UMA. | 10 // Push registration success / error codes for internal use & reporting in UMA. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
101 // The message was delivered, but the Service Worker passed a Promise to | 101 // The message was delivered, but the Service Worker passed a Promise to |
102 // event.waitUntil that got rejected. | 102 // event.waitUntil that got rejected. |
103 PUSH_DELIVERY_STATUS_EVENT_WAITUNTIL_REJECTED, | 103 PUSH_DELIVERY_STATUS_EVENT_WAITUNTIL_REJECTED, |
104 | 104 |
105 // When making changes, update PUSH_DELIVERY_STATUS_LAST below. | 105 // When making changes, update PUSH_DELIVERY_STATUS_LAST below. |
106 | 106 |
107 // Used for IPC message range checks. | 107 // Used for IPC message range checks. |
108 PUSH_DELIVERY_STATUS_LAST = PUSH_DELIVERY_STATUS_EVENT_WAITUNTIL_REJECTED | 108 PUSH_DELIVERY_STATUS_LAST = PUSH_DELIVERY_STATUS_EVENT_WAITUNTIL_REJECTED |
109 }; | 109 }; |
110 | 110 |
111 // Push message user visible tracking for reporting in UMA. | |
112 enum PushUserVisibleStatus { | |
113 // A notification was required and one (or more) were shown. | |
114 PUSH_USER_VISIBLE_STATUS_REQUIRED_AND_SHOWN = 0, | |
115 | |
116 // A notification was not required, but one (or more) were shown anyway. | |
117 PUSH_USER_VISIBLE_STATUS_NOT_REQUIRED_BUT_SHOWN = 1, | |
118 | |
119 // A notification was not required and none were shown. | |
120 PUSH_USER_VISIBLE_STATUS_NOT_REQUIRED_AND_NOT_SHOWN = 2, | |
121 | |
122 // A notification was required, but none were shown | |
123 PUSH_USER_VISIBLE_STATUS_REQUIRED_BUT_NOT_SHOWN_USED_GRACE = 3, | |
124 | |
125 // A notification was required, but none were shown | |
126 PUSH_USER_VISIBLE_STATUS_REQUIRED_BUT_NOT_SHOWN_GRACE_EXCEEDED = 4, | |
127 | |
Miguel Garcia
2015/02/13 11:26:25
can we have a explicit UMA for "The default notifi
johnme
2015/02/13 18:36:26
Yes, that's precisely what PUSH_USER_VISIBLE_STATU
| |
128 // NOTE: Do not renumber these as that would confuse interpretation of | |
129 // previously logged data. When making changes, also update the enum list | |
130 // in tools/metrics/histograms/histograms.xml to keep it in sync, and | |
131 // update PUSH_USER_VISIBLE_STATUS_LAST below. | |
132 | |
133 // Used for IPC message range checks. | |
134 PUSH_USER_VISIBLE_STATUS_LAST = | |
135 PUSH_USER_VISIBLE_STATUS_REQUIRED_BUT_NOT_SHOWN_GRACE_EXCEEDED | |
136 }; | |
137 | |
111 const char* PushRegistrationStatusToString(PushRegistrationStatus status); | 138 const char* PushRegistrationStatusToString(PushRegistrationStatus status); |
112 | 139 |
113 } // namespace content | 140 } // namespace content |
114 | 141 |
115 #endif // CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_STATUS_H_ | 142 #endif // CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_STATUS_H_ |
OLD | NEW |