Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1293)

Side by Side Diff: google_apis/gcm/engine/unregistration_request.cc

Issue 1873663002: Convert //google_apis from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698