Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: google_apis/gcm/engine/mcs_client.h

Issue 176823009: Show device information in chrome://gcm-internals page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698