OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GOOGLE_APIS_GCM_ENGINE_CHECKIN_REQUEST_H_ | 5 #ifndef GOOGLE_APIS_GCM_ENGINE_CHECKIN_REQUEST_H_ |
6 #define GOOGLE_APIS_GCM_ENGINE_CHECKIN_REQUEST_H_ | 6 #define GOOGLE_APIS_GCM_ENGINE_CHECKIN_REQUEST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 private: | 77 private: |
78 // Schedules a retry attempt with a backoff. | 78 // Schedules a retry attempt with a backoff. |
79 void RetryWithBackoff(); | 79 void RetryWithBackoff(); |
80 | 80 |
81 net::URLRequestContextGetter* request_context_getter_; | 81 net::URLRequestContextGetter* request_context_getter_; |
82 CheckinRequestCallback callback_; | 82 CheckinRequestCallback callback_; |
83 | 83 |
84 net::BackoffEntry backoff_entry_; | 84 net::BackoffEntry backoff_entry_; |
85 GURL checkin_url_; | 85 GURL checkin_url_; |
86 scoped_ptr<net::URLFetcher> url_fetcher_; | 86 std::unique_ptr<net::URLFetcher> url_fetcher_; |
87 const RequestInfo request_info_; | 87 const RequestInfo request_info_; |
88 base::TimeTicks request_start_time_; | 88 base::TimeTicks request_start_time_; |
89 | 89 |
90 // Recorder that records GCM activities for debugging purpose. Not owned. | 90 // Recorder that records GCM activities for debugging purpose. Not owned. |
91 GCMStatsRecorder* recorder_; | 91 GCMStatsRecorder* recorder_; |
92 | 92 |
93 base::WeakPtrFactory<CheckinRequest> weak_ptr_factory_; | 93 base::WeakPtrFactory<CheckinRequest> weak_ptr_factory_; |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(CheckinRequest); | 95 DISALLOW_COPY_AND_ASSIGN(CheckinRequest); |
96 }; | 96 }; |
97 | 97 |
98 } // namespace gcm | 98 } // namespace gcm |
99 | 99 |
100 #endif // GOOGLE_APIS_GCM_ENGINE_CHECKIN_REQUEST_H_ | 100 #endif // GOOGLE_APIS_GCM_ENGINE_CHECKIN_REQUEST_H_ |
OLD | NEW |