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
3 // found in the LICENSE file.
4 
5 #include "components/download/public/common/download_file_factory.h"
6 
7 #include <utility>
8 
9 #include "components/download/public/common/download_file_impl.h"
10 
11 namespace download {
12 
~DownloadFileFactory()13 DownloadFileFactory::~DownloadFileFactory() {}
14 
CreateFile(std::unique_ptr<DownloadSaveInfo> save_info,const base::FilePath & default_downloads_directory,std::unique_ptr<InputStream> stream,uint32_t download_id,base::WeakPtr<DownloadDestinationObserver> observer)15 DownloadFile* DownloadFileFactory::CreateFile(
16     std::unique_ptr<DownloadSaveInfo> save_info,
17     const base::FilePath& default_downloads_directory,
18     std::unique_ptr<InputStream> stream,
19     uint32_t download_id,
20     base::WeakPtr<DownloadDestinationObserver> observer) {
21   return new DownloadFileImpl(std::move(save_info), default_downloads_directory,
22                               std::move(stream), download_id, observer);
23 }
24 
25 }  // namespace download
26