Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
|
Peter Beverloo
2017/02/13 13:47:07
2017
harkness
2017/02/14 19:22:29
oops
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_MESSAGE_STATUS_H_ | |
| 6 #define COMPONENTS_GCM_DRIVER_GCM_MESSAGE_STATUS_H_ | |
| 7 | |
| 8 namespace gcm { | |
| 9 | |
| 10 // Enumeration to be used for describing the status of a GCM message. | |
| 11 enum class GCMMessageStatus { | |
| 12 // 0 reserved for unresolved. | |
| 13 GCM_UNRESOLVED = 0, | |
| 14 // 1 reserved for success. | |
| 15 GCM_SUCCESS = 1, | |
| 16 | |
| 17 // 2 - 99 reserved for the GCM communication error types. | |
| 18 GCM_INVALID_SUBTYPE = 2, | |
| 19 GCM_INVALID_SENDER_ID = 3, | |
| 20 GCM_NO_REGISTRATION = 4, | |
| 21 GCM_ENCRYPTION_FAILURE = 5, | |
|
Peter Beverloo
2017/02/13 13:47:07
nit: *DE*CRYPTION_FAILURE
harkness
2017/02/14 19:22:29
Done.
| |
| 22 GCM_UNKNOWN_MESSAGE_TYPE = 6, | |
| 23 GCM_NO_APP_HANDLER = 7, | |
|
Peter Beverloo
2017/02/13 13:47:07
GCM_INVALID_APP so that it can be generalized to A
harkness
2017/02/14 19:22:29
Done.
| |
| 24 }; | |
| 25 | |
| 26 using MessageReceiptCallback = base::Callback<void(GCMMessageStatus)>; | |
|
Peter Beverloo
2017/02/13 13:47:07
include //base/callback.h
harkness
2017/02/14 19:22:29
Done.
| |
| 27 | |
| 28 } // namespace gcm | |
| 29 | |
| 30 #endif // COMPONENTS_GCM_DRIVER_GCM_MESSAGE_STATUS_H_ | |
| OLD | NEW |