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..c3009b8189f82e79933f479a380f4f22558a996d 100644 |
--- a/google_apis/gcm/engine/mcs_client.h |
+++ b/google_apis/gcm/engine/mcs_client.h |
@@ -45,6 +45,8 @@ struct ReliablePacketInfo; |
// network requests are performed on. |
class GCM_EXPORT MCSClient { |
public: |
+ // Any change made to this enum should have corresponding change in the |
+ // GetStateString(...) function. |
enum State { |
UNINITIALIZED, // Uninitialized. |
LOADED, // GCM Load finished, waiting to connect. |
@@ -125,6 +127,9 @@ class GCM_EXPORT MCSClient { |
// Returns the current state of the client. |
State state() const { return state_; } |
+ // Returns text representation of the state enum. |
+ std::string GetStateString() const; |
+ |
protected: |
// Sets a |gcm_store| for testing. Does not take ownership. |
// TODO(fgorski): Remove this method. Create GCMEngineFactory that will create |