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

Side by Side Diff: google_apis/gcm/engine/checkin_request.h

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 #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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698