| 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..4ad6464a5c8cbeb76fc066712ca5f74a8165a02b 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"
|
| @@ -51,7 +52,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 +88,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 +210,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_;
|
|
|
|
|