Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_PUSH_MESSAGING_STATUS_H_ | |
| 6 #define CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_PUSH_MESSAGING_STATUS_H_ | |
|
Peter Beverloo
2014/04/02 14:46:05
nit: double PUSH_MESSAGING doesn't reflect the act
Michael van Ouwerkerk
2014/04/02 15:49:30
Done.
| |
| 7 | |
| 8 namespace content { | |
| 9 | |
| 10 enum PushMessagingStatus { | |
|
Peter Beverloo
2014/04/02 14:46:05
nit: maybe add a comment that this is based on the
Michael van Ouwerkerk
2014/04/02 15:49:30
Done.
| |
| 11 // Operation succeeded. | |
| 12 PUSH_MESSAGING_STATUS_OK, | |
| 13 // Invalid parameter. | |
| 14 PUSH_MESSAGING_STATUS_INVALID_PARAMETER, | |
| 15 // Profile not signed in. | |
| 16 // TODO(mvanouwerkerk) Delete when this value is no longer used. | |
| 17 PUSH_MESSAGING_STATUS_NOT_SIGNED_IN, | |
| 18 // Previous asynchronous operation is still pending. Certain operations, like | |
| 19 // register, are only allowed one at a time. | |
| 20 PUSH_MESSAGING_STATUS_OPERATION_PENDING, | |
| 21 // Network socket error. | |
| 22 PUSH_MESSAGING_STATUS_NETWORK_ERROR, | |
| 23 // Problem at the server. | |
| 24 PUSH_MESSAGING_STATUS_SERVER_ERROR, | |
| 25 // Exceeded the specified TTL during message sending. | |
| 26 PUSH_MESSAGING_STATUS_TTL_EXCEEDED, | |
| 27 // Other errors. | |
| 28 PUSH_MESSAGING_STATUS_UNKNOWN_ERROR, | |
| 29 }; | |
| 30 | |
| 31 } // namespace content | |
| 32 | |
| 33 #endif // CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_PUSH_MESSAGING_STATUS_H_ | |
| OLD | NEW |