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

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

Issue 10799005: Replace the DownloadFileManager with direct ownership (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to LKGR. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h"
11 #include "content/common/content_export.h"
12 #include "googleurl/src/gurl.h"
13
14 namespace net {
15 class BoundNetLog;
16 }
17
18 namespace content {
19
20 struct DownloadSaveInfo;
21
22 class ByteStreamReader;
23 class DownloadDestinationController;
24 class DownloadFile;
25 class DownloadManager;
26
27 class CONTENT_EXPORT DownloadFileFactory {
28 public:
29 virtual ~DownloadFileFactory();
30
31 virtual content::DownloadFile* CreateFile(
32 const content::DownloadSaveInfo& save_info,
33 GURL url,
34 GURL referrer_url,
35 int64 received_bytes,
36 bool calculate_hash,
37 scoped_ptr<content::ByteStreamReader> stream,
38 const net::BoundNetLog& bound_net_log,
39 base::WeakPtr<content::DownloadDestinationController> controller);
40 };
41
42 }; // namespace content
43
44 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698