| 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 7458c70dff01ff8e79952e8f5280ddc613f648ee..c4e6068499477a7609204a399671ce02048740e7 100644
|
| --- a/google_apis/gcm/gcm_client_impl.h
|
| +++ b/google_apis/gcm/gcm_client_impl.h
|
| @@ -19,6 +19,8 @@
|
| #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/monitoring/gcm_stats_recorder.h"
|
| +#include "google_apis/gcm/protocol/android_checkin.pb.h"
|
| #include "google_apis/gcm/protocol/checkin.pb.h"
|
| #include "net/base/net_log.h"
|
| #include "net/url_request/url_request_context_getter.h"
|
| @@ -29,6 +31,10 @@ namespace base {
|
| class Clock;
|
| } // namespace base
|
|
|
| +namespace mcs_proto {
|
| +class DataMessageStanza;
|
| +} // namespace mcs_proto
|
| +
|
| namespace net {
|
| class HttpNetworkSession;
|
| } // namespace net
|
| @@ -51,7 +57,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 +93,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:
|
| @@ -210,6 +219,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_;
|
|
|
|
|