Index: google_apis/gcm/gcm_client_impl.h |
diff --git a/google_apis/gcm/gcm_client_impl.h b/google_apis/gcm/gcm_client_impl.h |
index 4aa38ba3a8102a8bf21567b62760f1dc41d460c3..888967c30eadabfde34dd2f2f5d62edd8254fa5e 100644 |
--- a/google_apis/gcm/gcm_client_impl.h |
+++ b/google_apis/gcm/gcm_client_impl.h |
@@ -19,6 +19,7 @@ |
#include "google_apis/gcm/engine/registration_request.h" |
#include "google_apis/gcm/engine/unregistration_request.h" |
#include "google_apis/gcm/gcm_client.h" |
+#include "google_apis/gcm/gcm_stats_recorder.h" |
#include "google_apis/gcm/protocol/android_checkin.pb.h" |
#include "net/base/net_log.h" |
#include "net/url_request/url_request_context_getter.h" |
@@ -38,6 +39,7 @@ namespace gcm { |
class CheckinRequest; |
class ConnectionFactory; |
class GCMClientImplTest; |
+class GCMStatsRecorder; |
jianli
2014/03/26 20:17:18
nit: not needed since header file is already inclu
juyik
2014/03/26 20:57:32
Done.
|
// Helper class for building GCM internals. Allows tests to inject fake versions |
// as necessary. |
@@ -51,7 +53,8 @@ class GCM_EXPORT GCMInternalsBuilder { |
const std::string& version, |
base::Clock* clock, |
ConnectionFactory* connection_factory, |
- GCMStore* gcm_store); |
+ GCMStore* gcm_store, |
+ GCMStatsRecorder* recorder); |
virtual scoped_ptr<ConnectionFactory> BuildConnectionFactory( |
const std::vector<GURL>& endpoints, |
const net::BackoffEntry::Policy& backoff_policy, |
@@ -86,6 +89,8 @@ class GCM_EXPORT GCMClientImpl : public GCMClient { |
virtual void Send(const std::string& app_id, |
const std::string& receiver_id, |
const OutgoingMessage& message) OVERRIDE; |
+ virtual void SetRecording(bool recording) OVERRIDE; |
+ virtual void ClearActivityLogs() OVERRIDE; |
virtual GCMStatistics GetStatistics() const OVERRIDE; |
private: |
@@ -206,6 +211,9 @@ class GCM_EXPORT GCMClientImpl : public GCMClient { |
// Builder for the GCM internals (mcs client, etc.). |
scoped_ptr<GCMInternalsBuilder> internals_builder_; |
+ // Recorder that logs GCM activities. |
+ GCMStatsRecorder recorder_; |
+ |
// State of the GCM Client Implementation. |
State state_; |