Index: google_apis/gcm/gcm_client.h |
diff --git a/google_apis/gcm/gcm_client.h b/google_apis/gcm/gcm_client.h |
index 9280c68914b4564b5ba9b32b112570e24f8ccd01..0233257f248f8db075dc509d13f7a9f0a7ad6ece 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 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 { |
@@ -181,6 +193,9 @@ class GCM_EXPORT GCMClient { |
// Returns true if GCM becomes ready. |
virtual bool IsReady() const = 0; |
+ |
+ // Get internal states and statistics. |
+ virtual void GetStatistics(GCMStatistics* stats) const = 0; |
fgorski
2014/02/28 19:52:47
did you consider returning the stats?
e.g.
virtual
juyik
2014/03/01 00:21:57
Done. It introduces additional copy operations, bu
|
}; |
} // namespace gcm |