| 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..c07df226bf3b6f0aee943757c640dca4a6857ada 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;
|
| +
|
| + // Gets internal states and statistics.
|
| + virtual GCMStatistics GetStatistics() const = 0;
|
| };
|
|
|
| } // namespace gcm
|
|
|