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_STATUS_H_ | |
6 #define CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_STATUS_H_ | |
7 | |
8 namespace content { | |
9 | |
10 // This is based on the GCMClient::Result enum. | |
Peter Beverloo
2014/04/03 16:03:19
Can we remove this enum altogether? Including the
Michael van Ouwerkerk
2014/04/04 10:39:55
Done. I didn't like the enum either.
| |
11 // TODO(mvanouwerkerk): Consider abstracting these more instead of mapping 1:1. | |
12 enum PushMessagingStatus { | |
13 // Operation succeeded. | |
14 PUSH_MESSAGING_STATUS_OK, | |
15 // Invalid parameter. | |
16 PUSH_MESSAGING_STATUS_INVALID_PARAMETER, | |
17 // Profile not signed in. | |
18 // TODO(mvanouwerkerk) Delete when this value is no longer used. | |
19 PUSH_MESSAGING_STATUS_NOT_SIGNED_IN, | |
20 // Previous asynchronous operation is still pending. Certain operations, like | |
21 // register, are only allowed one at a time. | |
22 PUSH_MESSAGING_STATUS_OPERATION_PENDING, | |
23 // Network socket error. | |
24 PUSH_MESSAGING_STATUS_NETWORK_ERROR, | |
25 // Problem at the server. | |
26 PUSH_MESSAGING_STATUS_SERVER_ERROR, | |
27 // Exceeded the specified TTL during message sending. | |
28 PUSH_MESSAGING_STATUS_TTL_EXCEEDED, | |
29 // Other errors. | |
30 PUSH_MESSAGING_STATUS_UNKNOWN_ERROR, | |
31 }; | |
32 | |
33 } // namespace content | |
34 | |
35 #endif // CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_STATUS_H_ | |
OLD | NEW |