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 c55b1efdd86fb0a48f8c392cd9d187fb880ffb65..f4de0e33f2ac984533f63667765e9825366b182b 100644 |
--- a/content/public/common/push_messaging_status.h |
+++ b/content/public/common/push_messaging_status.h |
@@ -72,6 +72,21 @@ enum PushDeliveryStatus { |
PUSH_DELIVERY_STATUS_LAST = PUSH_DELIVERY_STATUS_EVENT_WAITUNTIL_REJECTED |
}; |
+// Push unregistration success / error codes for internal use & reporting. |
+enum PushUnregistrationStatus { |
+ // The unregistration was successful. |
+ PUSH_UNREGISTRATION_SUCCESS_UNREGISTER, |
+ |
+ // The registration was already unregistered. |
+ PUSH_UNREGISTRATION_SUCCESS_WAS_UNREGISTERED, |
+ |
+ // The unregistration did not happen because of a network error. |
+ PUSH_UNREGISTRATION_NETWORK_ERROR, |
+ |
+ // The unregistration did not happen because of a miscellaneous error. |
+ PUSH_UNREGISTRATION_UNKNOWN_ERROR, |
+}; |
+ |
const char* PushRegistrationStatusToString(PushRegistrationStatus status); |
} // namespace content |