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

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

Issue 793403002: Implement WebPushProvider.unregister() in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mvan_2
Patch Set: review commetns Created 6 years 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_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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // The message was delivered, but the Service Worker passed a Promise to 65 // The message was delivered, but the Service Worker passed a Promise to
66 // event.waitUntil that got rejected. 66 // event.waitUntil that got rejected.
67 PUSH_DELIVERY_STATUS_EVENT_WAITUNTIL_REJECTED, 67 PUSH_DELIVERY_STATUS_EVENT_WAITUNTIL_REJECTED,
68 68
69 // When making changes, update PUSH_DELIVERY_STATUS_LAST below. 69 // When making changes, update PUSH_DELIVERY_STATUS_LAST below.
70 70
71 // Used for IPC message range checks. 71 // Used for IPC message range checks.
72 PUSH_DELIVERY_STATUS_LAST = PUSH_DELIVERY_STATUS_EVENT_WAITUNTIL_REJECTED 72 PUSH_DELIVERY_STATUS_LAST = PUSH_DELIVERY_STATUS_EVENT_WAITUNTIL_REJECTED
73 }; 73 };
74 74
75 // Push unregistration success / error codes for internal use & reporting.
76 enum PushUnregistrationStatus {
77 // The unregistration was successful.
78 PUSH_UNREGISTRATION_SUCCESS_UNREGISTER,
79
80 // The registration was already unregistered.
81 PUSH_UNREGISTRATION_SUCCESS_WAS_UNREGISTERED,
82
83 // The unregistration did not happen because of a network error.
84 PUSH_UNREGISTRATION_NETWORK_ERROR,
85
86 // The unregistration did not happen because of a miscellaneous error.
87 PUSH_UNREGISTRATION_UNKNOWN_ERROR,
88 };
89
75 const char* PushRegistrationStatusToString(PushRegistrationStatus status); 90 const char* PushRegistrationStatusToString(PushRegistrationStatus status);
76 91
77 } // namespace content 92 } // namespace content
78 93
79 #endif // CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_STATUS_H_ 94 #endif // CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698