| 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 abe4e6edeaa99b7143ddfc68d0e6fd64dc63b35b..0f04505af0d92501f1b579433b7fd65a703c9b7a 100644
|
| --- a/google_apis/gcm/engine/checkin_request.h
|
| +++ b/google_apis/gcm/engine/checkin_request.h
|
| @@ -24,6 +24,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
|
| @@ -60,7 +62,8 @@ class GCM_EXPORT CheckinRequest : public net::URLFetcherDelegate {
|
| 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();
|
| @@ -81,6 +84,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);
|
|
|