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.
5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_
8 #include "base/files/file_path.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h"
12 #include "content/common/content_export.h"
21 class ByteStreamReader
;
22 class DownloadDestinationObserver
;
24 class DownloadManager
;
25 struct DownloadSaveInfo
;
27 class CONTENT_EXPORT DownloadFileFactory
{
29 virtual ~DownloadFileFactory();
31 virtual DownloadFile
* CreateFile(
32 scoped_ptr
<DownloadSaveInfo
> save_info
,
33 const base::FilePath
& default_downloads_directory
,
35 const GURL
& referrer_url
,
37 scoped_ptr
<ByteStreamReader
> stream
,
38 const net::BoundNetLog
& bound_net_log
,
39 base::WeakPtr
<DownloadDestinationObserver
> observer
);
42 } // namespace content
44 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_