| Index: google_apis/gcm/engine/mcs_client.h
|
| diff --git a/google_apis/gcm/engine/mcs_client.h b/google_apis/gcm/engine/mcs_client.h
|
| index f25456615d01424d1fe17eb36cd71a79ce08f31c..3739f2028798bb27b92fb0de47313cda534fbdef 100644
|
| --- a/google_apis/gcm/engine/mcs_client.h
|
| +++ b/google_apis/gcm/engine/mcs_client.h
|
| @@ -43,6 +43,8 @@ struct ReliablePacketInfo;
|
| // MCS endpoint, and is capable of reliably sending/receiving GCM messages.
|
| // NOTE: Not thread safe. This class should live on the same thread as that
|
| // network requests are performed on.
|
| +// Any change made to this enum should have corresponding change in the
|
| +// GetStateString(...) function.
|
| class GCM_EXPORT MCSClient {
|
| public:
|
| enum State {
|
| @@ -84,6 +86,9 @@ class GCM_EXPORT MCSClient {
|
| const std::string& message_id,
|
| MessageSendStatus status)> OnMessageSentCallback;
|
|
|
| + // Returns text representation of the enum State.
|
| + static std::string GetStateString(State state);
|
| +
|
| MCSClient(const std::string& version_string,
|
| base::Clock* clock,
|
| ConnectionFactory* connection_factory,
|
|
|