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 |
jianli
2014/03/04 23:47:39
The comment should be placed right before the enum
juyik
2014/03/05 05:08:08
Done.
|
+// 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); |
jianli
2014/03/04 23:47:39
ditto
juyik
2014/03/05 05:08:08
Done.
|
+ |
MCSClient(const std::string& version_string, |
base::Clock* clock, |
ConnectionFactory* connection_factory, |