Index: google_apis/gcm/gcm_client.h |
diff --git a/google_apis/gcm/gcm_client.h b/google_apis/gcm/gcm_client.h |
index c57cee784c57fd8d1f7a6e8c13e5ddbe07263559..80f55ea9f7030df7ab91c3a5cbf8b54e21c483f0 100644 |
--- a/google_apis/gcm/gcm_client.h |
+++ b/google_apis/gcm/gcm_client.h |
@@ -78,6 +78,18 @@ class GCM_EXPORT GCMClient { |
MessageData data; |
}; |
+ // Internal states and activity statistics of a GCM client. |
+ struct GCM_EXPORT GCMStatistics { |
+ public: |
+ GCMStatistics(); |
+ ~GCMStatistics(); |
+ |
+ bool gcm_client_created; |
+ std::string gcm_client_state; |
+ bool connection_client_created; |
+ std::string connection_state; |
+ }; |
+ |
// A delegate interface that allows the GCMClient instance to interact with |
// its caller, i.e. notifying asynchronous event. |
class Delegate { |
@@ -183,6 +195,9 @@ class GCM_EXPORT GCMClient { |
virtual void Send(const std::string& app_id, |
const std::string& receiver_id, |
const OutgoingMessage& message) = 0; |
+ |
+ // Get internal states and statistics. |
jianli
2014/03/04 23:47:39
nit: Gets
juyik
2014/03/05 05:08:08
Done.
|
+ virtual GCMStatistics GetStatistics() const = 0; |
}; |
} // namespace gcm |