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

Side by Side Diff: google_apis/drive/request_sender.cc

Issue 511323002: Manual fixups in drive code for scoped_refptr operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 years, 3 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
« no previous file with comments | « google_apis/drive/request_sender.h ('k') | google_apis/drive/request_sender_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/drive/request_sender.h" 5 #include "google_apis/drive/request_sender.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/sequenced_task_runner.h" 8 #include "base/sequenced_task_runner.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "google_apis/drive/auth_service.h" 10 #include "google_apis/drive/auth_service.h"
11 #include "google_apis/drive/base_requests.h" 11 #include "google_apis/drive/base_requests.h"
12 #include "net/url_request/url_request_context_getter.h" 12 #include "net/url_request/url_request_context_getter.h"
13 13
14 namespace google_apis { 14 namespace google_apis {
15 15
16 RequestSender::RequestSender( 16 RequestSender::RequestSender(
17 AuthServiceInterface* auth_service, 17 AuthServiceInterface* auth_service,
18 net::URLRequestContextGetter* url_request_context_getter, 18 net::URLRequestContextGetter* url_request_context_getter,
19 base::SequencedTaskRunner* blocking_task_runner, 19 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner,
20 const std::string& custom_user_agent) 20 const std::string& custom_user_agent)
21 : auth_service_(auth_service), 21 : auth_service_(auth_service),
22 url_request_context_getter_(url_request_context_getter), 22 url_request_context_getter_(url_request_context_getter),
23 blocking_task_runner_(blocking_task_runner), 23 blocking_task_runner_(blocking_task_runner),
24 custom_user_agent_(custom_user_agent), 24 custom_user_agent_(custom_user_agent),
25 weak_ptr_factory_(this) { 25 weak_ptr_factory_(this) {
26 } 26 }
27 27
28 RequestSender::~RequestSender() { 28 RequestSender::~RequestSender() {
29 DCHECK(thread_checker_.CalledOnValidThread()); 29 DCHECK(thread_checker_.CalledOnValidThread());
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return; 96 return;
97 request->Cancel(); 97 request->Cancel();
98 } 98 }
99 99
100 void RequestSender::RequestFinished(AuthenticatedRequestInterface* request) { 100 void RequestSender::RequestFinished(AuthenticatedRequestInterface* request) {
101 in_flight_requests_.erase(request); 101 in_flight_requests_.erase(request);
102 delete request; 102 delete request;
103 } 103 }
104 104
105 } // namespace google_apis 105 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/request_sender.h ('k') | google_apis/drive/request_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698