Index: google_apis/gcm/engine/connection_factory_impl.h |
diff --git a/google_apis/gcm/engine/connection_factory_impl.h b/google_apis/gcm/engine/connection_factory_impl.h |
index f637232d1ba3aed083e5114c75e7d660ab10691c..b52ef2dc8688ec765993032774d47c920c95e987 100644 |
--- a/google_apis/gcm/engine/connection_factory_impl.h |
+++ b/google_apis/gcm/engine/connection_factory_impl.h |
@@ -25,6 +25,7 @@ class NetLog; |
namespace gcm { |
class ConnectionHandlerImpl; |
+class GCMStatsRecorder; |
class GCM_EXPORT ConnectionFactoryImpl : |
public ConnectionFactory, |
@@ -35,7 +36,8 @@ class GCM_EXPORT ConnectionFactoryImpl : |
const std::vector<GURL>& mcs_endpoints, |
const net::BackoffEntry::Policy& backoff_policy, |
scoped_refptr<net::HttpNetworkSession> network_session, |
- net::NetLog* net_log); |
+ net::NetLog* net_log, |
+ GCMStatsRecorder* recorder); |
virtual ~ConnectionFactoryImpl(); |
// ConnectionFactory implementation. |
@@ -156,6 +158,9 @@ class GCM_EXPORT ConnectionFactoryImpl : |
// Builder for generating new login requests. |
BuildLoginRequestCallback request_builder_; |
+ // Recorder that records GCM activities for debugging purpose. Not owned. |
+ GCMStatsRecorder* recorder_; |
+ |
base::WeakPtrFactory<ConnectionFactoryImpl> weak_ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(ConnectionFactoryImpl); |