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

Side by Side Diff: net/url_request/url_fetcher_impl.cc

Issue 1545233002: Convert Pass()→std::move() in //net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « net/url_request/url_fetcher_core.cc ('k') | net/url_request/url_request.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 "net/url_request/url_fetcher_impl.h" 5 #include "net/url_request/url_fetcher_impl.h"
6 6
7 #include <utility>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
9 #include "net/base/upload_data_stream.h" 11 #include "net/base/upload_data_stream.h"
10 #include "net/url_request/url_fetcher_core.h" 12 #include "net/url_request/url_fetcher_core.h"
11 #include "net/url_request/url_fetcher_factory.h" 13 #include "net/url_request/url_fetcher_factory.h"
12 #include "net/url_request/url_fetcher_response_writer.h" 14 #include "net/url_request/url_fetcher_response_writer.h"
13 15
14 namespace net { 16 namespace net {
15 17
16 static URLFetcherFactory* g_factory = NULL; 18 static URLFetcherFactory* g_factory = NULL;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 core_->SaveResponseToFileAtPath(file_path, file_task_runner); 134 core_->SaveResponseToFileAtPath(file_path, file_task_runner);
133 } 135 }
134 136
135 void URLFetcherImpl::SaveResponseToTemporaryFile( 137 void URLFetcherImpl::SaveResponseToTemporaryFile(
136 scoped_refptr<base::SequencedTaskRunner> file_task_runner) { 138 scoped_refptr<base::SequencedTaskRunner> file_task_runner) {
137 core_->SaveResponseToTemporaryFile(file_task_runner); 139 core_->SaveResponseToTemporaryFile(file_task_runner);
138 } 140 }
139 141
140 void URLFetcherImpl::SaveResponseWithWriter( 142 void URLFetcherImpl::SaveResponseWithWriter(
141 scoped_ptr<URLFetcherResponseWriter> response_writer) { 143 scoped_ptr<URLFetcherResponseWriter> response_writer) {
142 core_->SaveResponseWithWriter(response_writer.Pass()); 144 core_->SaveResponseWithWriter(std::move(response_writer));
143 } 145 }
144 146
145 HttpResponseHeaders* URLFetcherImpl::GetResponseHeaders() const { 147 HttpResponseHeaders* URLFetcherImpl::GetResponseHeaders() const {
146 return core_->GetResponseHeaders(); 148 return core_->GetResponseHeaders();
147 } 149 }
148 150
149 HostPortPair URLFetcherImpl::GetSocketAddress() const { 151 HostPortPair URLFetcherImpl::GetSocketAddress() const {
150 return core_->GetSocketAddress(); 152 return core_->GetSocketAddress();
151 } 153 }
152 154
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 URLFetcherFactory* URLFetcherImpl::factory() { 230 URLFetcherFactory* URLFetcherImpl::factory() {
229 return g_factory; 231 return g_factory;
230 } 232 }
231 233
232 // static 234 // static
233 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { 235 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) {
234 g_factory = factory; 236 g_factory = factory;
235 } 237 }
236 238
237 } // namespace net 239 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher_core.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698