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..7f1411f78c101bedad96b5663b8f4c507ff2e832 100644 |
--- a/google_apis/gcm/gcm_client.h |
+++ b/google_apis/gcm/gcm_client.h |
@@ -78,6 +78,19 @@ 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; |
+ uint64 android_id; |
+ }; |
+ |
// A delegate interface that allows the GCMClient instance to interact with |
// its caller, i.e. notifying asynchronous event. |
class Delegate { |
@@ -183,6 +196,9 @@ class GCM_EXPORT GCMClient { |
virtual void Send(const std::string& app_id, |
const std::string& receiver_id, |
const OutgoingMessage& message) = 0; |
+ |
+ // Gets internal states and statistics. |
+ virtual GCMStatistics GetStatistics() const = 0; |
}; |
} // namespace gcm |