Chromium Code Reviews| Index: content/public/common/push_messaging_status.h |
| diff --git a/content/public/common/push_messaging_status.h b/content/public/common/push_messaging_status.h |
| index 21dcc6b22285fc1bdf1b7fbe2ddaf70edf55dc67..7a5151d3eb017317975c9a34c8537885d291e3ae 100644 |
| --- a/content/public/common/push_messaging_status.h |
| +++ b/content/public/common/push_messaging_status.h |
| @@ -108,6 +108,33 @@ enum PushDeliveryStatus { |
| PUSH_DELIVERY_STATUS_LAST = PUSH_DELIVERY_STATUS_EVENT_WAITUNTIL_REJECTED |
| }; |
| +// Push message user visible tracking for reporting in UMA. |
| +enum PushUserVisibleStatus { |
| + // A notification was required and one (or more) were shown. |
| + PUSH_USER_VISIBLE_STATUS_REQUIRED_AND_SHOWN = 0, |
| + |
| + // A notification was not required, but one (or more) were shown anyway. |
| + PUSH_USER_VISIBLE_STATUS_NOT_REQUIRED_BUT_SHOWN = 1, |
| + |
| + // A notification was not required and none were shown. |
| + PUSH_USER_VISIBLE_STATUS_NOT_REQUIRED_AND_NOT_SHOWN = 2, |
| + |
| + // A notification was required, but none were shown |
| + PUSH_USER_VISIBLE_STATUS_REQUIRED_BUT_NOT_SHOWN_USED_GRACE = 3, |
| + |
| + // A notification was required, but none were shown |
| + PUSH_USER_VISIBLE_STATUS_REQUIRED_BUT_NOT_SHOWN_GRACE_EXCEEDED = 4, |
| + |
|
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
|
| + // NOTE: Do not renumber these as that would confuse interpretation of |
| + // previously logged data. When making changes, also update the enum list |
| + // in tools/metrics/histograms/histograms.xml to keep it in sync, and |
| + // update PUSH_USER_VISIBLE_STATUS_LAST below. |
| + |
| + // Used for IPC message range checks. |
| + PUSH_USER_VISIBLE_STATUS_LAST = |
| + PUSH_USER_VISIBLE_STATUS_REQUIRED_BUT_NOT_SHOWN_GRACE_EXCEEDED |
| +}; |
| + |
| const char* PushRegistrationStatusToString(PushRegistrationStatus status); |
| } // namespace content |