Index: google_apis/gcm/engine/checkin_request.h |
diff --git a/google_apis/gcm/engine/checkin_request.h b/google_apis/gcm/engine/checkin_request.h |
index 5ae8dd33a0425099e06fc6a5460ee9b8a7bf60ee..1b81b80ca0ace8d033b4a58570cec34e24c61fe8 100644 |
--- a/google_apis/gcm/engine/checkin_request.h |
+++ b/google_apis/gcm/engine/checkin_request.h |
@@ -23,6 +23,8 @@ class URLRequestContextGetter; |
namespace gcm { |
+class GCMStatsRecorder; |
+ |
// Enables making check-in requests with the GCM infrastructure. When called |
// with android_id and security_token both set to 0 it is an initial check-in |
// used to obtain credentials. These should be persisted and used for subsequent |
@@ -58,7 +60,8 @@ class GCM_EXPORT CheckinRequest : public net::URLFetcherDelegate { |
CheckinRequest(const RequestInfo& request_info, |
const net::BackoffEntry::Policy& backoff_policy, |
const CheckinRequestCallback& callback, |
- net::URLRequestContextGetter* request_context_getter); |
+ net::URLRequestContextGetter* request_context_getter, |
+ GCMStatsRecorder* recorder); |
virtual ~CheckinRequest(); |
void Start(); |
@@ -78,6 +81,9 @@ class GCM_EXPORT CheckinRequest : public net::URLFetcherDelegate { |
scoped_ptr<net::URLFetcher> url_fetcher_; |
const RequestInfo request_info_; |
+ // Recorder that records GCM activities for debugging purpose. Not owned. |
+ GCMStatsRecorder* recorder_; |
+ |
base::WeakPtrFactory<CheckinRequest> weak_ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(CheckinRequest); |