| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 GOOGLE_APIS_GCM_ENGINE_MCS_CLIENT_H_ | 5 #ifndef GOOGLE_APIS_GCM_ENGINE_MCS_CLIENT_H_ |
| 6 #define GOOGLE_APIS_GCM_ENGINE_MCS_CLIENT_H_ | 6 #define GOOGLE_APIS_GCM_ENGINE_MCS_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 enum State { | 57 enum State { |
| 58 UNINITIALIZED, // Uninitialized. | 58 UNINITIALIZED, // Uninitialized. |
| 59 LOADED, // GCM Load finished, waiting to connect. | 59 LOADED, // GCM Load finished, waiting to connect. |
| 60 CONNECTING, // Connection in progress. | 60 CONNECTING, // Connection in progress. |
| 61 CONNECTED, // Connected and running. | 61 CONNECTED, // Connected and running. |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 // Any change made to this enum should have corresponding change in the | 64 // Any change made to this enum should have corresponding change in the |
| 65 // GetMessageSendStatusString(...) function in mcs_client.cc. | 65 // GetMessageSendStatusString(...) function in mcs_client.cc. |
| 66 enum MessageSendStatus { | 66 enum MessageSendStatus { |
| 67 // Message was queued succcessfully. | 67 // Message was queued successfully. |
| 68 QUEUED, | 68 QUEUED, |
| 69 // Message was sent to the server and the ACK was received. | 69 // Message was sent to the server and the ACK was received. |
| 70 SENT, | 70 SENT, |
| 71 // Message not saved, because total queue size limit reached. | 71 // Message not saved, because total queue size limit reached. |
| 72 QUEUE_SIZE_LIMIT_REACHED, | 72 QUEUE_SIZE_LIMIT_REACHED, |
| 73 // Message not saved, because app queue size limit reached. | 73 // Message not saved, because app queue size limit reached. |
| 74 APP_QUEUE_SIZE_LIMIT_REACHED, | 74 APP_QUEUE_SIZE_LIMIT_REACHED, |
| 75 // Message too large to send. | 75 // Message too large to send. |
| 76 MESSAGE_TOO_LARGE, | 76 MESSAGE_TOO_LARGE, |
| 77 // Message not send becuase of TTL = 0 and no working connection. | 77 // Message not send becuase of TTL = 0 and no working connection. |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 GCMStatsRecorder* recorder_; | 308 GCMStatsRecorder* recorder_; |
| 309 | 309 |
| 310 base::WeakPtrFactory<MCSClient> weak_ptr_factory_; | 310 base::WeakPtrFactory<MCSClient> weak_ptr_factory_; |
| 311 | 311 |
| 312 DISALLOW_COPY_AND_ASSIGN(MCSClient); | 312 DISALLOW_COPY_AND_ASSIGN(MCSClient); |
| 313 }; | 313 }; |
| 314 | 314 |
| 315 } // namespace gcm | 315 } // namespace gcm |
| 316 | 316 |
| 317 #endif // GOOGLE_APIS_GCM_ENGINE_MCS_CLIENT_H_ | 317 #endif // GOOGLE_APIS_GCM_ENGINE_MCS_CLIENT_H_ |
| OLD | NEW |