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

Side by Side Diff: content/browser/download/download_file_factory.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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
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 "content/browser/download/download_file_factory.h" 5 #include "content/browser/download/download_file_factory.h"
6 6
7 #include <utility>
8
7 #include "content/browser/download/download_file_impl.h" 9 #include "content/browser/download/download_file_impl.h"
8 10
9 namespace content { 11 namespace content {
10 12
11 DownloadFileFactory::~DownloadFileFactory() {} 13 DownloadFileFactory::~DownloadFileFactory() {}
12 14
13 DownloadFile* DownloadFileFactory::CreateFile( 15 DownloadFile* DownloadFileFactory::CreateFile(
14 scoped_ptr<DownloadSaveInfo> save_info, 16 scoped_ptr<DownloadSaveInfo> save_info,
15 const base::FilePath& default_downloads_directory, 17 const base::FilePath& default_downloads_directory,
16 const GURL& url, 18 const GURL& url,
17 const GURL& referrer_url, 19 const GURL& referrer_url,
18 bool calculate_hash, 20 bool calculate_hash,
19 scoped_ptr<ByteStreamReader> stream, 21 scoped_ptr<ByteStreamReader> stream,
20 const net::BoundNetLog& bound_net_log, 22 const net::BoundNetLog& bound_net_log,
21 base::WeakPtr<DownloadDestinationObserver> observer) { 23 base::WeakPtr<DownloadDestinationObserver> observer) {
22 return new DownloadFileImpl( 24 return new DownloadFileImpl(std::move(save_info), default_downloads_directory,
23 save_info.Pass(), default_downloads_directory, url, referrer_url, 25 url, referrer_url, calculate_hash,
24 calculate_hash, stream.Pass(), bound_net_log, observer); 26 std::move(stream), bound_net_log, observer);
25 } 27 }
26 28
27 } // namespace content 29 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_create_info.cc ('k') | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698