| 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 #include "google_apis/gcm/engine/unregistration_request.h" | 5 #include "google_apis/gcm/engine/unregistration_request.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 UnregistrationRequest::RequestInfo::~RequestInfo() {} | 48 UnregistrationRequest::RequestInfo::~RequestInfo() {} |
| 49 | 49 |
| 50 UnregistrationRequest::CustomRequestHandler::CustomRequestHandler() {} | 50 UnregistrationRequest::CustomRequestHandler::CustomRequestHandler() {} |
| 51 | 51 |
| 52 UnregistrationRequest::CustomRequestHandler::~CustomRequestHandler() {} | 52 UnregistrationRequest::CustomRequestHandler::~CustomRequestHandler() {} |
| 53 | 53 |
| 54 UnregistrationRequest::UnregistrationRequest( | 54 UnregistrationRequest::UnregistrationRequest( |
| 55 const GURL& registration_url, | 55 const GURL& registration_url, |
| 56 const RequestInfo& request_info, | 56 const RequestInfo& request_info, |
| 57 scoped_ptr<CustomRequestHandler> custom_request_handler, | 57 std::unique_ptr<CustomRequestHandler> custom_request_handler, |
| 58 const net::BackoffEntry::Policy& backoff_policy, | 58 const net::BackoffEntry::Policy& backoff_policy, |
| 59 const UnregistrationCallback& callback, | 59 const UnregistrationCallback& callback, |
| 60 int max_retry_count, | 60 int max_retry_count, |
| 61 scoped_refptr<net::URLRequestContextGetter> request_context_getter, | 61 scoped_refptr<net::URLRequestContextGetter> request_context_getter, |
| 62 GCMStatsRecorder* recorder, | 62 GCMStatsRecorder* recorder, |
| 63 const std::string& source_to_record) | 63 const std::string& source_to_record) |
| 64 : callback_(callback), | 64 : callback_(callback), |
| 65 request_info_(request_info), | 65 request_info_(request_info), |
| 66 custom_request_handler_(std::move(custom_request_handler)), | 66 custom_request_handler_(std::move(custom_request_handler)), |
| 67 registration_url_(registration_url), | 67 registration_url_(registration_url), |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 custom_request_handler_->ReportUMAs(status, 0, base::TimeDelta()); | 204 custom_request_handler_->ReportUMAs(status, 0, base::TimeDelta()); |
| 205 } | 205 } |
| 206 | 206 |
| 207 // status == SUCCESS || INVALID_PARAMETERS || UNKNOWN_ERROR || | 207 // status == SUCCESS || INVALID_PARAMETERS || UNKNOWN_ERROR || |
| 208 // REACHED_MAX_RETRIES | 208 // REACHED_MAX_RETRIES |
| 209 | 209 |
| 210 callback_.Run(status); | 210 callback_.Run(status); |
| 211 } | 211 } |
| 212 | 212 |
| 213 } // namespace gcm | 213 } // namespace gcm |
| OLD | NEW |